<cfscript>
dteFromFlash = "Mon Mar 10 00:00:00 GMT+0800 2003";
dteConverted = listGetAt( dteFromFlash, 3, " " ) & "-" & listGetAt( dteFromFlash, 2, " " ) & "-" & listGetAt( dteFromFlash, 6, " " );
writeOutput(dteConverted);
</cfscript>
-----Original Message-----
From: Kay Smoljak [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 8:31 AM
To: CF-Talk
Subject: Flash date format problem
I'm working on a Flash remoting app, and I need to pass a list of dates from the Flash calendar component to a CFC. I'm having some problems with date formats.
Flash is sending dates as strings like this: Mon Mar 10 00:00:00 GMT+0800 2003
In my CFC, when I run the following statements:
#CreateODBCDateTime("Mon Mar 10 00:00:00 GMT+0800 2003")#<br>
#DateFormat("Mon Mar 10 00:00:00 GMT+0800 2003",'dd/mm/yyyy')#<br>
#ParseDateTime("Mon Mar 10 00:00:00 GMT+0800 2003")#
I get the following results:
{ts '2000-03-10 00:00:00'}
10/03/2000
{ts '2000-03-10 00:00:00'}
That is, the 10th of March 2000 NOT the 10th of March 2003.
Any ideas on what I need to do to return the correct year?
TIA,
Kay.
_____
[ Todays Threads
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

