I think coldfusion reads it as a european date. maybe thats why it didn't
generate an error.
Dateformat("13/12/2000","yyyymmdd")
20001213
December 13, 2000 thats what it reads it as hehehe
-----Original Message-----
From: INGECOM - D. Delcomminette [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 8:05 AM
To: CF-Talk
Subject: Dateformat behaviour
Have a strange behaviour of DateFormat() function. Look at the following
code and the results below. In my opinion CF could give me an error message
on the second line (invalid date) but certainly not invert the day and month
as it does!
Your comments?
Dominique
<cfoutput>
<TABLE border="1">
<TR>
<TD>Dateformat("01/12/2000","yyyymmdd")</TD>
<TD>#Dateformat("01/12/2000","yyyymmdd")#</TD></TR>
<TR>
<TD>Dateformat("13/12/2000","yyyymmdd")</TD>
<TD>#Dateformat("13/12/2000","yyyymmdd")# </TD></TR></TABLE></P>
</CFOUTPUT></P>
Dateformat("01/12/2000","yyyymmdd")
20000112
Dateformat("13/12/2000","yyyymmdd")
20001213
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists