Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Compare;

Status
Not open for further replies.

tvb2002

Programmer
Jan 1, 2003
4
TN
Hello People of the World,
Tek-Tips Search is temporarily down for routine .... :-(
please help me:
How to compare two dates.
 
if date1 > date2
or
if date1 = date2
or
if date1 < date2
or
if between(datecheck,date1,date2)
true
else
false
endif

something like that? Please let me know if this helped you :)

Tekno
Wireless Toyz
Ypsilanti, Michigan
 
just compare them as you would any other variables.

dDate1 = ctod('01/02/2000')
dDate2 = date()
dDate <= dDate2 will result .T.

or you can use dtos() functions
dtos(dDate1) < dtos(dDate2) will result .T.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top