Name
Date.valueOf( ) — convert a Date to millisecond representation
Availability
JavaScript 1.1; ECMAScript v1
Inherits from/Overrides
Overrides Object.valueOf( )
Synopsis
date
.valueOf( )
Returns
The millisecond representation of date
.
The value returned is the same as that returned by
Date.getTime( )
.
Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.