Name
Date.toGMTString( ): convert a Date to a universal time string â ECMAScript v1; deprecated by ECMAScript v3
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
Date.toUTCString( )
Get JavaScript: The Definitive Guide, 5th 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.