JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Date.toGMTString() Method

Name

Date.toGMTString() Method---convert a date to a string

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

date.toGMTString()

Arguments

none

Returns

A string representation of the date and time specified by the Date object date. The date is converted from the local time zone to the GMT time zone before being converted to a string.

Description

toGMTString() converts a date to a string using the GMT time zone. The format of the returned string is platform dependent, but usually it will appear something like this:

Tue, 02 Apr 1996 02:04:57 GMT

See Also

"Date", "Date.parse()", "Date.toLocaleString()"


Previous Home Next
Date.setYear() Book Index Date.toLocaleString()

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell
Hosted by uCoz