Are you using cfqueryparam's to query the database? That should fix it as far 
as I know. If you can only do it with a string containing 'yyyy/mm/dd' kinda 
format you can have a look at the 

SET DATEFORMAT 

option, assuming you are using MS SQL. You'd probably need 

SET DATEFORMAT ymd

in that case. 

> hi, i am getting a very strange error with the dateformat
> 
> i get the date out of the database which is a timestamp, i format it 
> to dd/mm/yyyy in order to display on screen
> 
> i then try to convert it to yyyy/mm/dd in order to query the database 
> but i am noticing that if the day is below 12 then it produces the 
> format yyyy/dd/mm, if the day is above 12 then it produces the correct 
> format yyyy/mm/dd
> 
> has anyone seen this error or know how i can get around it
> 
> thanks 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258199
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