Check dates

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)
 
S

Stuart McCall

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top