The Date.parse() method takes a date string, and returns the number of milliseconds since midnight of "November 1, 1997 10:15 AM". if the string is unrecognised or contains illegal date values (e.g. 2015-02-31)
Syntax
Date.parse(dateVal)
datestring A string representing a date
Example:-
var dateString = "November 1, 1997 10:15 AM";
var mSec = Date.parse(dateString);
document.write(mSec);
// Output: 878404500000
0 Comment(s)