JS Built-ins
IntlDateTimeFormatintermediate

Resolved Options

πŸ“– Usage Example
const opts = new Intl.DateTimeFormat('en-US', { year: 'numeric', month: 'long' }).resolvedOptions();
// { locale: 'en-US', year: 'numeric', month: 'long', ... }

resolvedOptions() reveals the exact options and locale the formatter is using.

Get resolved options from Intl.DateTimeFormat.

πŸ’‘ Hints (1)
  • β€’ Use .resolvedOptions()