[Edit]
+
0
-
0

js get current timestamp using moment.js

1546
1 2 3 4 5 6 7 8 9
const moment = require('moment'); // get current timestamp const now = moment(); console.log(now); // Example output: // Moment<2022-01-31T21:00:40+01:00>