Why cannot IE parse this string as a Date object.
var d = Date.parse(\"Fri Jun 11 04:55:12 +0000 2010\"); // returns NaN
However, it works
In case your date is stored in SQL datetime like 2020-04-07 05:30:00 and want to parse it in IE. When you parse it with JavaScript in IE using new Date(), it outputs Invalid Date while latest versions of Chrome and Firefox parse this date correctly.
You have to replace with T in datetime string coming from SQL.
let myDate = '2020-04-07 05:30:00';
let myFormattedDate = myDate.replace(' ', 'T'); // '2020-04-07T05:30:00'
console.log(new Date(myFormattedDate));