IntlDateTimeFormatlocales
Intl.DateTimeFormat is a constructor in the ECMAScript Internationalization API (ECMA-402) that formats date and time values according to a specified locale and formatting options. It enables locale-sensitive representation of dates and times, taking into account language, region, time zone, and calendar conventions.
Creation and locales: The formatter is created with new Intl.DateTimeFormat(locales, options). The locales parameter can be
Formatting options: Options control which parts of the date and time are shown and how they are
Methods: The object provides format(date) to produce a localized string for a given Date, and formatToParts(date)
Usage notes: Intl.DateTimeFormat is widely supported in modern browsers and Node.js (as part of ECMA-402). It