cfdeveloper
Programmer
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
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