>>dateformat(foodate,'mm/dd/yyyy') Here is your problem: use CeateODBCDateFormat instead: #CeateODBCDateFormat(foodate)#
Also #CeateODBCDateFormat(now())# Furthermore, this will work provided foodate always contains a valid date. If it is empty, it will cause an error. In this case, you have to check if foodate is a date, return CreateODBCDate if yes, and null if not. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348657 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

