The Intl.DateTimeFormat.prototype
property represents the prototype object for the Intl.DateTimeFormat
constructor.
Property attributes of Intl.DateTimeFormat.prototype |
|
---|---|
Writable | no |
Enumerable | no |
Configurable | no |
Description
See DateTimeFormat
for a description of Intl.DateTimeFormat
instances.
Intl.DateTimeFormat
instances inherit from Intl.DateTimeFormat.prototype
. Modifications to the prototype object are inherited by all Intl.DateTimeFormat
instances.
Properties
Intl.DateTimeFormat.prototype.constructor
- A reference to
Intl.DateTimeFormat
. Intl.DateTimeFormat.prototype.format
- Getter; returns a function that formats a date according to the locale and formatting options of this
DateTimeFormat
object.
Methods
Intl.DateTimeFormat.prototype.formatToParts()
- Returns an
Array
of objects representing the date string in parts that can be used for custom locale-aware formatting. Intl.DateTimeFormat.prototype.resolvedOptions()
- Returns a new object with properties reflecting the locale and formatting options computed during initialization of the object.
Specifications
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | 24 | Yes | 29 | 11 | 15 | 10 |
Feature | Android webview | Chrome for Android | Edge mobile | Firefox for Android | IE mobile | Opera Android | iOS Safari |
---|---|---|---|---|---|---|---|
Basic support | No | 26 | Yes | 56 | No | ? | 10 |