Re: [flexcoders] Date issue - need to create date out of string like xxxx-xx-xx from XML

2008-09-16 Thread Josh McDonald
@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

Re: [flexcoders] Date issue - need to create date out of string like xxxx-xx-xx from XML

2008-09-16 Thread Josh McDonald
:[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

RE: [flexcoders] Date issue - need to create date out of string like xxxx-xx-xx from XML

2008-09-16 Thread Tim Rowe
] 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

RE: [flexcoders] Date issue - need to create date out of string like xxxx-xx-xx from XML

2008-09-16 Thread Alex Harui
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

Re: [flexcoders] Date issue - need to create date out of string like xxxx-xx-xx from XML

2008-09-16 Thread Josh McDonald
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

Re: [flexcoders] Date issue - need to create date out of string like xxxx-xx-xx from XML

2008-09-16 Thread Josh McDonald
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 =

RE: [flexcoders] Date issue - need to create date out of string like xxxx-xx-xx from XML

2008-09-16 Thread Peter Farland
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

Re: [flexcoders] Date issue - need to create date out of string like xxxx-xx-xx from XML

2008-09-16 Thread Josh McDonald
: 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