Retrieves the system's current TimeZone, Calendar, and Locale information by resolving the default Intl.DateTimeFormat options.
Intl.DateTimeFormat
The resolved DateTimeFormat options
const { timeZone, locale } = getDateTimeFormat(); Copy
const { timeZone, locale } = getDateTimeFormat();
Retrieves the system's current TimeZone, Calendar, and Locale information by resolving the default
Intl.DateTimeFormatoptions.