JS Built-ins
IntlDateTimeFormatbeginner

Create DateTimeFormat

πŸ“– Usage Example
const dtf = new Intl.DateTimeFormat('en-US');
// Creates a date formatter for the en-US locale

Intl.DateTimeFormat creates a locale-aware date/time formatter.

Create an Intl.DateTimeFormat instance.

πŸ’‘ Hints (1)
  • β€’ Use new Intl.DateTimeFormat(locale)