Thanks.. I knew it was something simple.. Just could not see it. -----Original Message----- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 9:41 PM To: CF-Talk Subject: Re: SQL Dates
>>#DATEFORMAT(NOW(),'MM/DD/YYYY')# BETWEEN PA_START_DATE AND PA_END_DATE First, you should never use formated dates in SQL, especially if you want to compare them with columns. And most especially with the month first. If PA_START_DATE and PA_END_DATE are true date type, try this: WHERE #CreateODBCdate(now))# BETWEEN PA_START_DATE AND PA_END_DATE If PA_START_DATE and PA_END_DATE are actually text fields formated MM/DD/YYYY, then you are in trouble :-( -- _______________________________________ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:226645 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

