At 11:09 PM 10/30/2005, Justin Scott wrote: >If you do it the way you're doing it, you're comparing strings, not date >objects. You should take the fields you get from the DB and use >createDateTime() to create a CF datetime object, then compare that to now() >instead of comparing strings.
Thanks for the answer. I was actually trying to use CreateDateTime with this code: <cfset startTimeDate= CreateDateTime(qry.applOpenYear, qry.applOpenMonth, qry.applOpenDay, qry.applOpenHour, qry.applOpenMinute, qry.applOpenSecond)> ....but that threw a nonspecified error, and the CFSET tag would only be processed if I enclosed the portion after the EQUAL sign within quotes (which obviously converted it to a string). Any ideas on how to code this part so that it works? Thanks, Roberto Perez ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:222715 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

