Returns the milliseconds representation of the date; same as valueOf().
var myDate = new Date(); console.log(myDate.getTime());
The code above generates the following result.