node js get date now timestamp code example Example: nodejs current timestamp Math.floor(new Date() / 1000)