Gets a string representing the UTC date and time.
| Return value | Description |
|---|---|
| string | The string representation of the date and time. |
var date = new Date();
date.toUTCString()
// 26-Nov-2008 16:25:36
(2) This computed label displays the base date and time (where the time zone is -5).
var date = new Date(0);
date.toUTCString()
// 01-Jan-1970 00:00:00