javascript store date in localstorage code example
Example: javascript store date in localstorage
var a = new Date();
localStorage.setItem("a",a);
var b = new Date(localStorage.getItem("a"));
//b now equals a (you have stored and retreived a date in localStorage)