Re: [flexcoders] String To Date Conversion

2009-05-27 Thread Tom Chiverton
On Wednesday 27 May 2009, Manish Jethani wrote: > var d:Date = new Date(Date.parse(s)); Note Date.parse() has issues: http://www.rachaelandtom.info/content/could-go-my-head-ya-know -- Helping to confidentially maximize cross-platform bricks-and-clicks interactive cross-media meta-service

Re: [flexcoders] String To Date Conversion

2009-05-27 Thread Manish Jethani
On Tue, May 26, 2009 at 6:17 PM, yogesh patel wrote: >   I have a String like "Tue May 26 18:12:55 IST 2009". How to > convert this string into Date object ? var s:String = "Tue May 26 18:12:55 IST 2009"; s = s.replace(/IST/, "UTC+0530"); var d:Date = new Date(Date.parse

RE: [flexcoders] String To Date Conversion

2009-05-26 Thread Kenneth Sutherland
First thing you need to do is to convert the timezone IST into whatever its difference is from GMT. (I have no idea what timezone IST is, so this is not accurate). So your string Tue May 26 18:12:55 IST 2009" would turn into Tue May 26 18:12:55 GMT -0200 2009" once you've done this then you can p

RE: [flexcoders] String To Date Conversion

2009-05-26 Thread Jake Churchill
new Date( Date.parse( your_string_variable ) ); Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of yogesh patel Sent: Tu