Thanks,

that only took the best part of the day to fix.
But at least its done. It seems to be working fine.

Ricardo.


Taco Fleur wrote:

1. make sure the locale settings under Control Panel -> Regional Options are all set to Australian 2. if you do not have access to this or do not want to touch those settings you could do

<cfset form.myDate = "12/12/2004">
<cfset myDate = createDate(listLast(form.myDate, "/"), listGetAt(form.myDate, 2, "/"), 
listFirst(form.myDate, "/"))>
<cfset myDate = lsDateFormat(variables.myDate)> <!--- this will format the date specified 
in the local server settings --->
<cfset myDate = dateFormat(variables.myDate, "dd-mm-yyyy")> <!--- this will format the 
date as you specify --->

-----Original Message-----
From: Ricardo Russon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 8 June 2004 10:02 AM
To: CFAussie Mailing List
Subject: [cfaussie] Date Formatting.


Morning guys,

Can anyone help with DateFormat and LSDateFormat?

The fact that cf still assumes that i want my dates in mm/dd/yyyy format
is a little more than annoying. My locale gets set in the

Application.cfm, and
i have also put the au locale in the JVM.

My dates keep getting translated into mm/dd/yyyy even if i use DateFormat
to format it the other way around. It wouldn't be such a big problem if

i could
predict when it would do this. but it seems to only happen on certain dates.

I have also tried using LSDateFormat, but i run into all sorts of

trouble when
using time stamps from the database. It throws an error telling me that

au_AU
is not a valid locale, or that the timestamp is not a valid date format.

I don't understand why dates aren't Locale Specific by default. but I really
need to find a way around this.

Any advice? tips and tricks you guys use? I hope that Blackstone has much
better support for LS dates.

Please help.
Ricardo.

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Register now for the 3rd National Conference on Tourism Futures, being held in 
Townsville, North Queensland 4-7 August - www.tq.com.au/tfconf



--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to