Mysql has date_add and adddate (and tons more date function) should be
pretty easy.

Check here
http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html
bookmark it...bookmark it... bookmark it

 
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-----Original Message-----
From: Protoculture [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 14, 2005 6:37 AM
To: CF-Talk
Subject: querying for dates mssql.

I need a query that will return all records that are set to expire ( column
name "toexpire" - which is just a date ) in the next 7 days.

select * from mytable 
where toexpire ???



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221014
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to