showing results for - "javascript store date in localstorage"
Antonella
16 Jan 2018
1var a = new Date();
2localStorage.setItem("a",a);
3var b = new Date(localStorage.getItem("a")); 
4
5//b now equals a (you have stored and retreived a date in localStorage)