@yahoogroups.com
*Subject:* RE: [flexcoders] Date issue - need to create date out of string
like -xx-xx from XML
It's got to just be total coincidence that what's virtually the same
question has come up twice in the same day.
The answer I provided earlier will also work, and will do so in ~5
:[EMAIL PROTECTED] *On
Behalf Of *Josh McDonald
*Sent:* Tuesday, 16 September 2008 3:43 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Date issue - need to create date out of
string like -xx-xx from XML
Old code, probably terribly inefficient:
//-MM-DD
] On
Behalf Of Josh McDonald
Sent: Tuesday, 16 September 2008 3:43 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Date issue - need to create date out of string
like -xx-xx from XML
Old code, probably terribly inefficient:
//-MM-DD
static public const
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh
McDonald
Sent: Tuesday, 16 September 2008 3:43 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Date issue - need to create date out of string like
-xx-xx from XML
Old code, probably
of
code.
--Tim
--
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Josh McDonald
*Sent:* Tuesday, 16 September 2008 3:43 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Date issue - need to create date out of string
Old code, probably terribly inefficient:
//-MM-DD
static public const SIMPLE_INTL_DATE : RegExp =
/^(\d{4})[-\/](\d{2})[-\/](\d{2})$/;
//-MM-DD - midday!
static public function parseSimpleIntlDate(input : String) : Date {
var parts : Array =
date out of string like
-xx-xx from XML
I don't actually use that code I posted above, as all our dates come in via
SOAP, for which Flex's unmarshaller is even worse :)
I like the strict checking you can do with a regex. Dates are an awful touchy
subject in this business.
-Josh
: Tuesday, September 16, 2008 2:05 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Date issue - need to create date out of string
like -xx-xx from XML
I don't actually use that code I posted above, as all our dates come in via
SOAP, for which Flex's unmarshaller is even worse
8 matches
Mail list logo