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. 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?
>  

Have you looked at:  mx/formatters/DateFormatter.html

cheers,
  - shaun

Reply via email to