how to compare date in vb???
Visual Basic
2
Posts
2
Posters
0
Views
1
Watching
-
is it possible to compare date in vb??? i want to compare let said if over specific date 1/1/2005 is pass from today date then some event happen.... thanks.
Dim earlydate As Date, laterdate As Date, today As Date earlydate = "1/1/2000" latedate = "1/1/2050" today = Now If DateDiff("s", earlydate, today) > 0 Then MsgBox earlydate & " comes before " & today Else MsgBox earlydate & " comes after " & today End If :rose::rose: 1fm1fu