GO-V.ORG
As seen in

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

6 results across 6 corpora for Date.prototype.toUTCString().

Developer library 6

Deprecated and obsolete features

setYear() methods are affected by the Year-2000-Problem and have been subsumed by getFullYear and setFullYear. - The `toGMTString()` method is deprecated. Use toUTCString() instead. ### Escape sequences - Octal escape sequences (\ followed by one, two, or three octal digits) are deprecated in string and regular expression literals. - The escape() and unescape() functions are deprecated. Use encodeURI(), encodeURIC

Date

)`](/docs/Web/JavaScript/Reference/Global_Objects/Date/Symbol.toPrimitive) (when passed `"string"` or `"default"`) calls `toString()` and returns the result. - toUTCString() returns a string in the format `Thu, 01 Jan 1970 00:00:00 GMT` (generalized 7231). - toLocaleDateString(), toLocaleTimeString(), and toLocaleString() use locale-specific date and time formats, usually provided by the [`Intl`](/docs/Web/JavaScript

Date.prototype.toJSON()

, 1975 23:15:30 UTC"); const jsonDate = event.toJSON(); console.log(jsonDate); // Expected output: "1975-08-19T23:15:30.000Z" console.log(new Date(jsonDate).toUTCString()); // Expected output: "Tue, 19 Aug 1975 23:15:30 GMT" ``` ## Syntax ```js-nolint toJSON() ``` ### Parameters None. ### Return value A string representing the given date in the [date time string format](/docs/Web/JavaScript/Reference/Global_

Date.prototype.toISOString()

:00.000Z" ``` ## Specifications ## Browser compatibility ## See also - Date.prototype.toLocaleDateString() - Date.prototype.toString() - Date.prototype.toUTCString()

Date.prototype.toTimeString()

e toDateString(). - If you want to get both the date and time, use toString(). - If you want to make the date interpreted as UTC instead of local timezone, use toUTCString(). - If you want to format the date in a more user-friendly format (e.g., localization), use toLocaleTimeString(). ## Examples ### Using toTimeString() ```js const d = new Date(0); console.log(d.toString()); // "Thu Jan 01 1970 00:00:00 GMT+000

Date.prototype.toDateString()

e toTimeString(). - If you want to get both the date and time, use toString(). - If you want to make the date interpreted as UTC instead of local timezone, use toUTCString(). - If you want to format the date in a more user-friendly format (e.g., localization), use toLocaleDateString(). ## Examples ### Using toDateString() ```js const d = new Date(0); console.log(d.toString()); // "Thu Jan 01 1970 00:00:00 GMT+000

JSON results · Services directory