Glossary Term
Intl.DateTimeFormat() constructor
The Intl.DateTimeFormat() constructor creates Intl.DateTimeFormat objects.
Return value: Note: The text below describes behavior that is marked by the specification as “optional”. It may not work in all environments. Check the browser compatibility table.
Return value: Normally, Intl.DateTimeFormat() can be called with or without new, and a new Intl.DateTimeFormat instance is returned in both cases. However, if the this value is an object that is instanceof Intl.DateTimeFormat (doesn’t necessarily mean it’s created via new Intl.DateTimeFormat; just that it has Intl.DateTimeFormat.prototype in its prototype chain), then the value of this is returned instead, with the newly created Intl.DateTimeFormat object hidden in a [Symbol(IntlLegacyConstructedSymbol)] property (a unique symbol that’s reused between instances).
Syntax example: new Intl.DateTimeFormat()
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
