|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
how to compare two date variables?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. Amanda wrote: Show quoteHide quote > 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? Truong Hong Thi wrote:
> The greater than operator works just fine: Thanks a lot; I wasn't sure about that. I was thinking there night becompare function of soem sort. Show quoteHide quote > > if date1 > date2 Then ... > > Note that you can also use =, <>, >=, <= operators. Check out MSDN. > > > > Amanda wrote: > > 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?
class library
How to Load string into mshtml object? Detect WiFi Networks Adding rows to a data table: Rows do not show up what method to use to add 1 day to a date (hotel reservation for one night by clicking on calender) PLEASE HELP - Executable properties - right click Variable precision How do I calculate the date of the previous day given a date ( in "MM/dd/yy" format) Cannot get Application Setting How to send output ticket Printer(VB005) |
|||||||||||||||||||||||