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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

comparing dates

Status
Not open for further replies.

rbauerle

Programmer
Oct 16, 2001
48
BR
How do I compare these two date types?
data_envio is a datetime type and data_i is a string - "27/12/2001". It works for some dates and not for others.

data_envio>=data_i

Thanks a lot ... :)
 
Strings don't evaluate the same as dates. Try converting the string to a date with the FormatDateTime command.

data_envio >= FormatDateTime(data_i,2)




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top