Date
object from a Unix timestamp.1000
.new Date()
to create a new Date
object.const fromTimestamp = timestamp => new Date(timestamp * 1000);
fromTimestamp(1602162242); // 2020-10-08T13:04:02.000Z
Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️