Code to go logo
Created using Figma
Use Cases
Contribute
How to convert date to timestamp in JavaScript
Datetime
By Jad Joubran ·
Last updated Dec 26, 2017
const date = new Date("Jan 10, 2000"); const timestamp = date.getTime();
947455200000
Dec 26, 2017
1
Jad Joubran
See answer
1
Jad Joubran
Date.getTime
on MDN
Learn JavaScript step by step