This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.
Smartphone icons created by Freepik - Flaticon
Date.parse(string) returns milliseconds.
You can use the return value to convert the string to a date object:
Wed Mar 21 2012 00:00:00 GMT+0000 (Coordinated Universal Time)
let msec = Date.parse("March 21, 2012"); const d = new Date(msec); document.getElementById("demo").innerHTML = d;