I have an ISODateTime format :
2013-11-21T20:58:03+0000
How to convert it to milliseconds in AngularJS.
I used DateTime.Parse() => it works on chrome but fails on ios. Any other way to implement the same?
My main aim for this is to find difference (in minutes) between current time and this time :
var diff= (new Date(new Date().getTime() - Date.parse(item['myDate']))).getMinutes();
where item['myDate'] = 2013-11-21T20:58:03+0000
To be sure that it will work on any browser (like iOS safari) we can just split time and create new date instance.
Try:
Demo Fiddle