IntlDateTimeFormat
Intl.DateTimeFormat is a constructor in the ECMAScript Internationalization API (ECMA-402) that formats dates and times according to a user’s locale and display preferences. It creates formatter objects that, when given a Date, produce localized strings suitable for user interfaces and reports.
Usage and basic behavior: You create a formatter with new Intl.DateTimeFormat(locales, options). The locales parameter can
Options and formatting granularity: The options object can include a range of properties to control output.
Examples and usage notes: A typical usage formats a date as locale-aware text, for example formatting a
See also: ECMAScript Internationalization API, Intl.DateTimeFormat.prototype.format, Intl.DateTimeFormat.prototype.formatToParts.