const date = new Date('1990-07-15T10:17:40Z'); const unixTimestamp = Math.floor(date.getTime() / 1000); console.log("Unix Timestamp: " + unixTimestamp);
Date
getTime()
Math.floor()
Date()
new Date()
Date.now()
Date.parse()
Date.parse("2024-08-28T12:34:56Z")
getFullYear()
new Date().getFullYear()
getMonth()
new Date().getMonth()
getDate()
new Date().getDate()
getDay()
new Date().getDay()
getHours()
new Date().getHours()
getMinutes()
new Date().getMinutes()
getSeconds()
new Date().getSeconds()
new Date().getTime()
toISOString()
new Date().toISOString()
toLocaleDateString()
new Date().toLocaleDateString()
toLocaleTimeString()
new Date().toLocaleTimeString()