[Edit]
+
0
-
0
js get current timestamp using moment.js
1 2 3 4 5 6 7 8 9const moment = require('moment'); // get current timestamp const now = moment().format(); console.log(now); // Example output: // 2022-01-31T21:02:17+01:00
1 2 3 4 5 6 7 8 9const moment = require('moment'); // get current timestamp const now = moment().format(); console.log(now); // Example output: // 2022-01-31T21:02:17+01:00