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

DateTime Field Calculation

Status
Not open for further replies.

gkrenton

MIS
Jul 2, 2003
151
US
Have a table that has a field modify_date in modify_date DATETIME YEAR TO SECONd format I want to use this field in a when statement comparing it to today less 2 days In access I can do a modify_date<=date()-2 & get the proper result but seems informix is a bit more picky.
What is the syntax for doing this comparision realizing that the 'time' element will never be exact.
- Thanks

Gina

 
Something like this ?
modify_date<=TODAY-2 UNITS DAY

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
PH -
You've saved me yet again, that does work. I have more specific Informix SQL books on the road so maybe I'll be able to find some of this syntax stuff w/o always asking.

Thanks a ton.

- gina
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top