How to convert date to timestamp in JavaScript

Datetime
Last updated Dec 26, 2017
const date = new Date("Jan 10, 2000");

const timestamp = date.getTime();
947455200000