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