So ändern Sie den Zeitstempel bis Datum JS
var timestamp = 1607110465663
var date = new Date(timestamp);
console.log(date.getTime())
console.log(date)
Graceful Gull
var timestamp = 1607110465663
var date = new Date(timestamp);
console.log(date.getTime())
console.log(date)
// human date --> timestamp
function toTimestamp(strDate){
var datum = Date.parse(strDate);
return datum/1000;
}
alert(toTimestamp('02/13/2009 23:31:30'));
const toTimestamp=(strDate)=>{
var datum = Date.parse(strDate);
return datum/1000;
}
console.log(toTimestamp('02/13/2009 23:31:30'));
function toTimestamp(strDate){
var datum = Date.parse(strDate);
return datum/1000;
}
alert(toTimestamp('02/13/2009 23:31:30'));