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] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to