August 1999
Intermediate to advanced
1488 pages
72h 53m
English
date.valueOf()The valueOf() method returns the primitive value of the object. In terms of an instance of a Date object, this method returns the equivalence of the Date object in milliseconds. The milliseconds are expressed as an integer representing the number of milliseconds between midnight January 1, 1970 (GMT) to the date and time specified in the Date object.
Listing 6.114 creates a Date object representing the current date and time. The result of the valueOf() method on this date object is displayed in the browser.
<script language="JavaScript"> ... |
Read now
Unlock full access