Date du magasin JavaScript dans 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)
Friendly Hawk