Convert string date to Date type

var d:Date = new Date(Date.parse(MM/DD/YYYY));

Christmas day
var d:Date = new Date(Date.parse(12/24/2008));

One Response to “Convert string date to Date type”

  1. Mark Says:

    Well thats pretty simple - but I cannot believe that flex will not allow you to include time in that. What if I have YYYY-MM-DD HH:MM:SS??

Leave a Reply