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

Reply via email to