Check dates

  • Thread starter Thread starter Southern at Heart
  • Start date Start date
S

Southern at Heart

I have 2 dates, like this:
3/10/2010

and I need to make sure the 2nd one is a later date than the first one. How
can I do this?
(sorry if this is double posted, pc crashed)
 
Southern at Heart said:
I have 2 dates, like this:
3/10/2010

and I need to make sure the 2nd one is a later date than the first one.
How
can I do this?
(sorry if this is double posted, pc crashed)

Assuming your dates are in variables Date1 and Date2, both declared as Date

If Date2 > Date1 Then
MsgBox "2nd date is later"
End If
 
Back
Top