Return to Snippet

Revision: 25060
at March 18, 2010 16:19 by arpit

Initial Code
var dateTime:Array = dateString.split("T")
var dateParts:Array = dateTime[0].split("-")
var timeString:String =  String(dateTime[1])
timeString = timeString.substr(0,timeString.length-1)
var timeParts:Array = timeString.split(":")
var d:Date = new Date(dateParts[0], (dateParts[1]-1), dateParts[2], timeParts[0], timeParts[1], timeParts[2]);
return d;

Initial URL

Initial Description

Initial Title
Converting Java DateTime to AS3 Date

Initial Tags

Initial Language
ActionScript 3