I have a variable that contains a date in epoch format:
var myDate = "1385923147000";
I can easily convert this in the latest FF, Chrome and IE10+ using:
myDate = new Date($filter('date')(myDate, 'yyyy-MM-dd'));
myDate.setHours(0,0,0,0);
console.log(myDate);
Which displays as:
Sun Dec 01 2013 00:00:00 GMT+0000 (GMT Standard Time)
This fine in FF, Chrome and IE10+ however in IE8 this entire console.log/conversion is not executed which i causing my app to fail.
How can i convert in an IE8+ friendly way??