August 1999
Intermediate to advanced
1488 pages
72h 53m
English
date.toGMTString()The toGMTString() method returns a string representing the universal time of the Date object. The date is converted to the GMT time zone before being converted to a string. The format of the string will look similar to the following:
Mon, 24 Oct 1982 12:03:27 GMT
The code in listing 6.108 creates a Date object that contains the current date and time. The toGMTString() method returns the date as a string in GMT.
<html> <script language="JavaScript"> <!–– Hide //Create a Date object. theDate = new Date(); //Display date ... |
Read now
Unlock full access