Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DateFormat misery.

Status
Not open for further replies.

cfdeveloper

Programmer
Joined
Nov 20, 2003
Messages
144
Location
GB
Hello everybody,
I can't understand what's happenning here. I have form with a text field and a date selector that pops up when a user clicks on a img next to the text field.
If I select a date from the calendar, say for example I selected this: 5/1/2004 11:04 (05 Jan. 2004), the text field is set to 5/1/2004 11:04. I'm passing this value
in a url variable.

On the action page when I output this url variable the value displayed is the same (5/1/2004 11:04), however if I do this:
<cfoutput>#dateFormat(url.timestamp,'yyyy/mm/dd')#</cfoutput>, the output value is 2004/05/01 when I expect it to be 2004/01/05. Can anybody tell me what's happenning here because
I can't figure it out why this is happenning. I am using CFMX

Best Regards,
CFCODER
 
LSDateFormat does the trick.
Cheers
cfcoder
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top