Hi Claude,

we use mysql 5.0 and it does store the date as yyyy/mm/dd.

we run a query to get the date out. 

then its just the following piece of code that doesnt work:

<cfset dateOfBirth = lsdateformat(queryName.dateofbirth,"dd/mm/yyyy")>

it 'spits' out the error stated above 'invalid date format 01/16/1990'

it is saved in the db as 1990/01/16, im not telling it to put it in the format 
01/16/1990, i am telling it to put it in the format 16/01/1990

if i put exactly the same code but take out the ls then it works fine

<cfset dateOfBirth = dateformat(queryName.dateofbirth,"dd/mm/yyyy")>

thanks for your help


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296924
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to