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:
let msec = Date.parse("March 21, 2012"); const d = new Date(msec); document.getElementById("demo").innerHTML = d;