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

Specification Status Comment
ECMAScript Internationalization API 1.0 (ECMA-402)
The definition of 'Intl.DateTimeFormat.prototype' in that specification.
Standard Initial definition.
ECMAScript Internationalization API 2.0 (ECMA-402)
The definition of 'Intl.DateTimeFormat.prototype' in that specification.
Standard  
ECMAScript Internationalization API 4.0 (ECMA-402)
The definition of 'Intl.DateTimeFormat.prototype' in that specification.
Draft  

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic Support24 (Yes)29111510
FeatureAndroidChrome for AndroidEdge mobileFirefox for AndroidIE mobileOpera AndroidiOS Safari
Basic Support No26 (Yes)56 No ?10

See also

Document Tags and Contributors

 Contributors to this page: fscholz, arai, Mingun, Sheppy, Norbert
 Last updated by: fscholz,