Anonymous contributor2 total contributions
Published Jul 22, 2021Updated May 31, 2023
Contribute to Docs
Returns the difference in milliseconds between the specified date and January 1, 1970 00:00:00 UTC.
Print the value of January, 1st, 1970 at 12:00:00 AM.
const date = new Date(1999, 00, 01, 0, 0, 0, 0);console.log(date);// Output: Fri Jan 01 1999 00:00:00 GMT-0800 (Pacific Standard Time)// Note: Timezone may varyconsole.log(date.valueOf());// Output: 915177600000
The following is runnable, and demonstrates the use of the
- Anonymous contributorAnonymous contributor2 total contributions
- christian.dinh2481 total contributions
- Anonymous contributorAnonymous contributor3077 total contributions
- robgmerrill124 total contributions
Front-End EngineerFront-end engineers work closely with designers to make websites beautiful, functional, and fast.
Includes 34 Courses
With Professional Certification