actually, it looks like DateFormat is helping you out by assuming that the
second date you supply is the "european" style of mm/dd/yyyy.
chris olive, cio
cresco technologies
[EMAIL PROTECTED]
http://www.crescotech.com
-----Original Message-----
From: INGECOM - D. Delcomminette [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 9: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