Setlocale and lsparsedatetime try this...
<cfscript>
SetLocale("English (UK)");
date1 = lsparsedatetime("15/09/2001");
date2 = lsparsedatetime("06/09/2001");
</cfscript>
<cfoutput>
Month1: #Month(date1)#<br> = 9
Month2: #Month(date2)# = 9
</cfoutput>
-----Original Message-----
From: Rudy Rustam [mailto:[EMAIL PROTECTED]]
Sent: 29 August 2001 09:47
To: CF-Talk
Subject: Help - Date in English (UK)
Hi,
Please look at the following code:
<cfset date1 = "15/09/2001">
<cfset date2 = "06/09/2001">
<cfoutput>
Month1: #Month(date1)#</br> = 09
Month2: #Month(date2)# = 06
</cfoutput>
How to make ColdFusion consistently use English (UK) to grab a date?
Thank you.
Rudy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists