Favorites

JavaScript Date.prototype.toLocaleDateString() Method

☕
Enjoying this site?

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

Buy us a coffee
Date.prototype.toLocaleDateString()
JavaScript Date Instance methodThis method is supported by all modern browsers.
Updated 28th November 2026

The toLocaleDateString() method formats the date part of a Date for a given language and region, such as 28/11/2026 or November 28, 2026.

Description

The toLocaleDateString() method returns the date part formatted according to a locale's conventions, using Intl.DateTimeFormat internally. The same date shows as "11/28/2026" in the US and "28/11/2026" in Australia. Options let you show names of days and months and choose which parts appear. Without a locale, the user's own settings are used.

Each call creates a formatter internally, so when formatting many dates in a list, create one Intl.DateTimeFormat and reuse its format() method. Pass a timeZone option such as 'UTC' or 'Australia/Adelaide' to show the date in a particular zone rather than the user's.

The output is meant for display, so don't parse it back into a date or store it; formats differ between locales and browsers. For machine-readable dates, use toISOString().

Syntax

date.toLocaleDateString()
date.toLocaleDateString(locales, options)

Parameters

  • localesOptional. A language tag such as "en-AU".
  • optionsOptional. Formatting options such as weekday, year, month, day and timeZone.

Return Value

A string with the date part formatted for the language.

Example

const d = new Date(2026, 10, 28);
console.log(d.toLocaleDateString('en-US'));
console.log(d.toLocaleDateString('en-AU'));
console.log(d.toLocaleDateString('en-GB', { weekday: 'long', day: 'numeric', month: 'long', year: 'numeric' }));
console.log(d.toLocaleDateString('fr-FR', { month: 'short', day: 'numeric' }));

Browser Support

The following information will show you the current browser support for the Date.prototype.toLocaleDateString() method. Hover over a browser icon to see the version that first introduced support for this method.

This method 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