1 var date = new Date(); 2 var n = date.valueOf() 3 var date2 = new Date(n); 4 console.info(date.valueOf()); 5 console.info(date2.toLocaleString());