JavaScript Reference/Javascript Methods/toUTCString
"toUTCString()" Example
<html>
<body>
<button onclick="var myDate = new Date(); alert(myDate.toUTCString());">
to UTC string
</button>
</body>
</html>
"toUTCString()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |Date |
+----------------+--------------------------------------------------------------+
"toUTCString()" Syntax Parameters and Note
Note:
Uses UTC time to convert the Date to a locale-specific format.
Syntax:
dateName.toUTCString()