August 1999
Intermediate to advanced
1488 pages
72h 53m
English
Date.parse(date)
The parse() method returns the time, represented in milliseconds between date argument string and midnight, January 1, 1970, GMT. Notice that this method is associated with the "Date" object rather than a date that was declared. The string date should use the format written by the Date toGMTString() method, which looks like the following:
Mon, 24 Oct 1982 12:03:27 -0200
The method will also accept strings that lack all or portions of the time and time zone.
The code in Listing 6.90 displays the milliseconds from 1970 to the string representation of the date and time.
<html> ... |
Read now
Unlock full access