myDate.toUTCString() in ECMAScript 262
Returns a string form of the Date in a convenient, human-readable form in UTC.
- Return Type
- String
Description
The actual format of the string is not specified in the ECMAScript specifications, and hence may be implementation-dependant.
Note that this is the official method which replaced Date.toGMTString()
; though they behave identically, Date.toUTCString()
is part of the standard, and Date.toGMTString()
is not.