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 |
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.
Intl.DateTimeFormat.prototype.constructorIntl.DateTimeFormat.Intl.DateTimeFormat.prototype.formatDateTimeFormat object.Intl.DateTimeFormat.prototype.formatToParts()Array of objects representing the date string in parts that can be used for custom locale-aware formatting.Intl.DateTimeFormat.prototype.resolvedOptions()| Desktop | ||||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
| Basic support | 24 | Yes | 29 | 11 | 15 | 10 |
| Mobile | |||||||
|---|---|---|---|---|---|---|---|
| Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
| Basic support | No | 26 | Yes | 56 | ? | 10 | Yes |
| Server | |
|---|---|
| Node.js | |
| Basic support | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/prototype