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
Date.getTime on MDN