Name
Date.toGMTString() — convert a Date to a universal time string
Availability
deprecated
Synopsis
date
.
toGMTString
()
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()
is deprecated
in favor of the identical method Date.toUTCString()
.
As of ECMAScript v3, conforming implementations of JavaScript
are no longer required to provide this method; use toUTCString()
instead.
See Also
Get JavaScript: The Definitive Guide, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.