how to compare two date variables?

  • Thread starter Thread starter Amanda
  • Start date Start date
A

Amanda

I have ArrivalDate and DepartureDate.

I need to compare them to see whether arraival date is before departure
date ( Note, in this program, we are not concern about arrival date
that is before today's date).

Help?
 
The greater than operator works just fine:

if date1 > date2 Then ...

Note that you can also use =, <>, >=, <= operators. Check out MSDN.
 
Back
Top