JS LEIA DATA DE MILLISEGONDS
const miliseconds = 1604395966369;
const date = new Date(miliseconds);
Cold Shower Coding
const miliseconds = 1604395966369;
const date = new Date(miliseconds);
Date.now() // 1602680486141
var date = new Date("11/21/1987 16:00:00"); // some mock date
var milliseconds = date.getTime();
// This will return you the number of milliseconds
// elapsed from January 1, 1970
// if your date is less than that date, the value will be negative
console.log(milliseconds);
var d=new Date();
d.getTime();//I'm in milliseconds, divide by 1000 for seconds
const time1 = new Date(0);
// epoch time
console.log(time1); // Thu Jan 01 1970 05:30:00
// 100000000000 milliseconds after the epoch time
const time2 = new Date(100000000000)
console.log(time2); // Sat Mar 03 1973 15:16:40
var myDate = +new Date("2012-02-10T13:19:11+0000");