Gosh, I cant believe I am asking this question. But, other than parsing the
string I cannot see anyway to obviously convert my string to a date format.
My string is returned from a SQL query and passed to my app via XML.
So my string is in the format: YYY-MM-DD HH:M:SS. This is a standard SQL
Subject: [flexcoders] Convert String to Date?
Gosh, I cant believe I am asking this question. But, other than parsing
the string I cannot see anyway to obviously convert my string to a date
format. My string is returned from a SQL query and passed to my app via
XML.
So my string is in the format
Mark Easton wrote:
Gosh, I cant believe I am asking this question. But, other than parsing the
string I cannot see anyway to obviously convert my string to a date format.
My string is returned from a SQL query and passed to my app via XML.
So my string is in the format: YYY-MM-DD HH:M:SS.
Good stuff - thanks!
_
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tim Rowe
Sent: Tuesday, September 16, 2008 1:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Convert String to Date?
I had the same thing just a few weeks ago. Note here
hi,how to convert a string format like "22-4-2006" to date in flex 2.0 ?
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
Just do this:var date:Date = new Date(22/5//2006) or var date:Date = new Date(2006,5,22)Remember that months go from 0 (January) to 11 (December) not 1 to 12.BTW, try to look at the documentation before asking, I think it's all quite good explained:
Date doc:
6 matches
Mail list logo