example:
var temp = 'Thu Jan 09 2014 14:49:18 GMT-0500 (Eastern Standard Time)';
var testDate = new Date(temp);
alert(testDate);
The alert will read 'Invalid Date'
Now if I change it to:
var testDate = new Date('Thu Jan 09 2014 14:49:18 GMT-0500 (Eastern Standard Time)');
alert(testDate);
The alert will read: Thu Jan 09 2014 14:49:18 GMT-0500 (Eastern Standard Time)
The issue is that I am being given date strings in an array and if I set up my data:
for(i in array){
alert(new Date(array[i]));
}
And because of the above example I am getting 'invalid date' in IE and iOS (I am running chrome app in iOS) It works fine in Chrome/firefox on desktop, what can I do to make Date() work correctly in IE and on iOS. Again, I am doing this in javascript and will not have access to the internet so online src="" links will not work.