timestamp js
var timestamp = new Date().getTime();
GutoTrosla
var timestamp = new Date().getTime();
Math.floor(Date.now() / 1000)
var currentTimeInSeconds=Math.floor(Date.now()/1000); //unix timestamp in seconds
var currentTimeInMilliseconds=Date.now(); // unix timestamp in milliseconds
var timestamp = new Date().getTime();
console.log(timestamp);
new Date().getTime()
new Date().valueOf()
var today = new Date().toLocaleDateString(undefined, {
day: '2-digit',
month: '2-digit',
year: 'numeric',
hour: '2-digit',
minute: '2-digit',
second: '2-digit'
})