I have a date function that converts HTML
form input into a date in milliseconds. It works in all browsers except Internet explorer.
Is the JavaScript
Date function not functional in IE?
The code below should give you 1521032400 in FF and Chrome but NaN in IE11
Code
var startTime = '9:00 AM';
var startDate = "2018-03-14";
var dateInMilli = new Date(startDate + " " + startTime.split(' ')[0]).getTime() / 1000;
alert(dateInMilli);