Code to go logo
Created using Figma
Use Cases
Contribute
How to get current timestamp in JavaScript
Datetime
By Jad Joubran ·
Last updated Dec 26, 2017
const timestamp = Date.now(); console.log(timestamp); //in milliseconds
1514300333756
Dec 26, 2017
1
Jad Joubran
See answer
1
Jad Joubran
Date.now
on MDN
Learn JavaScript step by step
Related use cases
How to get current timestamp in seconds in JavaScript