DateFormat assumes US date formats by default - it is effectivelt a
hardwired US locale specific version of LSDateFormat. I would recommend that
you set your locale using SetLocale("English (UK)") [or whatever] and then
use the locale specific versions of the date and time manipulation
functions.
Steve
> -----Original Message-----
> From: INGECOM - D. Delcomminette [mailto:[EMAIL PROTECTED]]
> Sent: 14 February 2001 14:05
> 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