Date.toGMTString

Converts a date to a string, using the Internet GMT conventions.

Method of Date

Syntax

toGMTString()

Parameters

None

Description

toGMTString is no longer used and has been replaced by the Date.toUTCString method.
The exact format of the value returned by toGMTString varies according to the platform.
You should use Date.toUTCString instead of toGMTSTring.

Examples

In the following example, today is a Date object:

In this example, the toGMTString method converts the date to GMT (UTC) using the operating system's time-zone offset and returns a string value that is similar to the following form. The exact format depends on the platform.
Mon, 18 Dec 1995 17:28:35 GMT

See also

Date.toLocaleString, Date.toUTCString

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.