Moment.js: Date.now() javaScript analogue September 17, 2023 by Tarik Use the valueOf method on a moment object: For local time: moment().valueOf(); For UTC: moment().utc().valueOf();