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.toLocaleString().
Developer library 6
Object prototypes
```plain __defineGetter__ __defineSetter__ __lookupGetter__ __lookupSetter__ __proto__ city constructor greet hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf ``` Try accessing one of them: ```js myObject.toString(); // "[object Object]" ``` It works (even if it's not obvious what `toString()` does). What are these extra properties, and where do they come from? Every object in Ja
Firefox 29 release notes for developers
Number and Date have been updated to include the `locales` and `options` arguments per ECMA-402: - String.prototype.localeCompare() - Number.prototype.toLocaleString() - Date.prototype.toLocaleString() - Date.prototype.toLocaleDateString() - Date.prototype.toLocaleTimeString() - To match the updated ECMAScript 2015 draft specification, the Map and Set objects now treat `-0` and `+0` as the same
Firefox 52 release notes for developers
/1291212)). - You can now use [IANA time zone names](https://www.iana.org/time-zones) in the `timeZone` option of date related APIs like DateTimeFormat or Date.toLocaleString() ([Firefox bug 837961](https://bugzil.la/837961)). #### Changes and removals - [Array destructuring](/docs/Web/JavaScript/Reference/Operators/Destructuring#array_destructuring) now throws a SyntaxError when using destructuring rest with trail
Named capturing group: (? ...)
stamp } = /^(?<timestamp>\d+),(?<author>.+)$/.exec( entry, ).groups; return `${author} committed on ${new Date( parseInt(timestamp, 10) * 1000, ).toLocaleString()}`; } parseLog("1560979912,Caroline"); // "Caroline committed on 6/19/2019, 5:31:52 PM" ``` ## Specifications ## Browser compatibility ## See also - [Polyfill of named capturing groups in `core-js`](https://core-js.io/docs/features/ecm
Deprecated and obsolete features
). ### Date - `Date.prototype.toLocaleFormat()`, which used a format string in the same format expected by the `strftime()` function in C, is obsolete. Use [`toLocaleString()`](/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString) or [`Intl.DateTimeFormat`](/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat) instead. ### Array - Non-standard Array generic methods like `Array.slice(myAr
Date
he 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/Reference/Global_Objects/Intl) API. See the [Formats of `toString` method return values](#formats_of_tostring_method_return_values) section for e