You can, but it might not always work depending on your database system.

If you are using ODBC, look at the CreateODBCDatexxx() functions.

You could also use CFQUERYPARAM with CF_SQL_DATE as the sql type.

The main point is to ensure you have a valid date format and not just a field 
named "...date...".

-----Original Message-----
From: Stuart Kidd [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 08, 2004 10:13 AM
To: CF-Talk
Subject: Date lower than another in SQL

Hi guys,

I�m trying to find the syntax within a WHERE statement to get all articles 
which have deadlines due today or already passed.

My fields are articleDeadline and my date now is todayUKdate.

I have seen the DataDiff tag but that only works in a cfif statement.  Can I 
just say:

WHERE articleDeadline < todayUKdate?

Thanks





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - CFDynamics
http://www.cfdynamics.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186667
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to