Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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)
 
PREVIOUS NEXT
Tagged: #javascript #store #date #localstorage
ADD COMMENT
Topic
Name
8+4 =