Favorites

JavaScript Intl.DateTimeFormat Object

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee
Intl.DateTimeFormat
JavaScript Internationalization · ConstructorThis object is supported by all modern browsers.
Updated 28th November 2026

Intl.DateTimeFormat formats dates and times for a chosen language and region, with options for styles, parts and time zones.

Description

Intl.DateTimeFormat creates a formatter for dates and times that follows the conventions of a locale: the order of day, month and year, month names, 12- or 24-hour clocks and so on. Options include dateStyle and timeStyle ('full', 'long', 'medium' or 'short'), individual parts such as weekday, month and hour, and timeZone to show a time in another zone.

Call format(date) for a string, formatToParts() to get the pieces separately for custom styling, and formatRange() for ranges such as "28 Nov - 2 Dec".

All the formatting is done by the browser using its built-in locale data, so you don't need a date library just to display dates. Calling resolvedOptions() on a formatter tells you which locale, calendar and time zone it actually ended up using, which is the standard way to detect the user's time zone: Intl.DateTimeFormat().resolvedOptions().timeZone.

Creating

new Intl.DateTimeFormat(locales, options)

Example

const d = new Date(Date.UTC(2026, 10, 28, 3, 30));

console.log(new Intl.DateTimeFormat('en-US').format(d));
console.log(new Intl.DateTimeFormat('en-GB', { dateStyle: 'long', timeStyle: 'short', timeZone: 'UTC' }).format(d));
console.log(new Intl.DateTimeFormat('en-AU', { weekday: 'long', timeZone: 'Australia/Adelaide' }).format(d));
console.log(new Intl.DateTimeFormat('ja-JP', { dateStyle: 'medium' }).format(d));

Browser Support

The following information will show you the current browser support for the Intl.DateTimeFormat object. Hover over a browser icon to see the version that first introduced support for this object.

This object is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee