Hello, I'm new in this stuff and I already need some help. I try to make a WFA for filling, reading etc. to a database. I want to compare 2 dates (actually 1 date is changed by 42 days) that are chosen by a user through a datetimepicker. After comparing the 2 dates the "newest" date has to show up in a non editable textbox. This Is my code (of course I have 2 subs for the datetimepickers as well).

Code:
Private Sub AwbdatumTextBox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AwbdatumTextBox.TextChanged
        Dim DatumbinnenkomstDateTimePicker As DateTime
        Dim DatumbeschikkingDateTimePicker As DateTime
        Dim beschikking As DateTime
        beschikking = DateAdd("d", 42, DatumbeschikkingDateTimePicker)

        If DatumbinnenkomstDateTimePicker > beschikking Then
            Me.AwbdatumTextBox.Text = DatumbinnenkomstDateTimePicker.ToString("ddMMyyy")

        Else
            Me.AwbdatumTextBox.Text = beschikking.ToString("ddMMyyy")
        End If
    End Sub
Thanks in advance