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
DateTimeFormatobject.
Methods
Intl.DateTimeFormat.prototype.formatToParts()- Returns an
Arrayof 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
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|
| Basic support | 24 | 29 (29) | 11 | 15 | No support |
| Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|
| Basic support | No support | 26 | 54.0 (54) (nightly-only) | No support | No support | No support |