js create date object from unix epoch code example Example: get epoch timestamp js Math.floor(Date.now() / 1000)