I guess I can modify the date format returned by MySQL ... ie
date_format(last_modified, '%a %b %e %Y %r') ... but still, flex is pretty
limited here.


  _____  

From: Mark Easton [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2008 12:22 PM
To: 'flexcoders@yahoogroups.com'
Subject: 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:  YYY-MM-DD HH:M:SS. This is a standard SQL
format. So why can I not easily convert that in to a date format in flex?
 
I have looked at the Date and DateField classes but no help there.
DateField.stringToDate for instance only accepts date formats (no time).
Date for instance wants a date in the format (as follows) ... 
 
var date:Date = new Date("Mon May 1 2006 11:30:00 AM");
 
Hmmm - what a pain! Any one have a solution?
 
TIA
Mark
 
 
 
 
<http://geo.yahoo.com/serv?s=97359714/grpId=12286167/grpspId=1705007207/msgI
d=125320/stime=1221523430/nc1=4507179/nc2=3848641/nc3=4836036> 
 

Reply via email to