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 Intl.DateTimeFormat.prototype.format().
Developer library 6
Page types
tion property of the instance. Generally, a method is a data property defined on the instance's prototype, but there are some legacy exceptions, such as [`Intl.DateTimeFormat.prototype.format()`](/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/format), which is an accessor property that returns a bound function. For the sake of reader familiarity, we treat them as normal methods. #### Examples - [
Firefox 73 release notes for developers
https://bugzil.la/1603773)). Use the mrow and mo elements instead. ### JavaScript - The `yearName` and `relatedYear` fields have been made available in the [`DateTimeFormat.prototype.formatToParts()`](/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/formatToParts) method, enabling useful formatting options for CJK calendars ([Firefox bug 1591664](https://bugzil.la/1591664)). ### APIs #### DOM -
Firefox 91 release notes for developers
1715984](https://bugzil.la/1715984)). The property has not been usable by web developers since Firefox 88, this completes the removal. ### JavaScript - Intl.DateTimeFormat.prototype.formatRange() and Intl.DateTimeFormat.prototype.formatRangeToParts() are now supported in release builds. The `formatRange()` method returns a localized and formatted string for the range between two Date objects (e.g., "1/05/21 – 1/10
Firefox 52 release notes for developers
1212](https://bugzil.la/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 destru
Deprecated and obsolete features
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(myArr, 0, 12)`, `Array.forEach(myArr, myFn)`, etc. have been introduced in Firefox 1.5 (JavaScript 1
Date.prototype.getDay()
, "Monday", "Tuesday" /* , … */]; console.log(dayNames[day]); // "Tuesday" ``` However, for the purpose of internationalization, you should prefer using Intl.DateTimeFormat with the `options` parameter instead. ```js const options = { weekday: "long" }; console.log(new Intl.DateTimeFormat("en-US", options).format(valentines)); // "Tuesday" console.log(new Intl.DateTimeFormat("de-DE", options).format(valentines));