“Be inspired, enjoy your work, keep learning and never forget to play.” — gskinner

Convert string date to Date type

Posted: July 16th, 2008 | Author: Ivan Valadares | Filed under: Actionscript3, Code | 1 Comment »

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

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


One Comment on “Convert string date to Date type”

  1. 1 Mark said at 12:21 am on September 16th, 2008:

    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