Name

toUTCString() — NN 4 IE J3 ECMA 1

Synopsis

Returns a string version of the UTC value of a Date object instance in a standardized format. This method does not alter the original Date object. For use in newer browsers, the toUTCString() method is recommended in favor of toGMTString().

Returned Value

String in the following format: dayAbbrev, dd mmm yyyy hh:mm:ssGMT. For example:

Wed 05 Aug 1998 02:33:22 GMT

Parameters

None.

Get Dynamic HTML: The Definitive Reference 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.