On Fri, December 10, 2004 2:44 pm, Jason Smith said: > This code works fine with a access database, since converting the entire > cf > application to a live SQL database it has been the beginning of a > nightmare. I'm not real familiar with access but it seems they have some > really strange ways to check dates and whatnot.
I've found that SQL Server 2000 handles dates in this format: 'm/d/yyyy' It treats it like a string (not a numeric type) so you have to enclose it in single quotes within the query itself. Typically I create a ColdFusion date object using CreateDate(), then convert that to a string using DateFormat(mydate, "m/d/yyyy"). -Cliff ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Silver Sponsor - RUWebby http://www.ruwebby.com Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187068 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

