/ Published in: ActionScript 3
Patterns: http://www.geekzilla.co.uk/View00FF7904-B510-468C-A2C8-F859AA20581F.htm
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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;