[Edit]
+
0
-
0
js get current timestamp using moment.js
1 2 3 4 5const moment = require('moment'); const currentDate = moment.now(); console.log(currentDate); // Example output: 1643910082118
1 2 3 4 5const moment = require('moment'); const currentDate = moment.now(); console.log(currentDate); // Example output: 1643910082118