Date.prototype.toLocaleDateString()

Returns the date portion formatted for a locale.

Since ES5 Spec ↗

Syntax

date.toLocaleDateString(locales, options)

Returns

string — A locale-aware date string.

Examples

const d = new Date("2026-05-15T12:00:00Z");
console.log(d.toLocaleDateString("en-US", { timeZone: "UTC" }));
Output
5/15/2026
const d = new Date("2026-05-15T12:00:00Z");
console.log(
  d.toLocaleDateString("en-GB", { timeZone: "UTC" })
);
Output
15/05/2026

Notes

- Output depends on the runtime's locale data and time zone. - Use the `options` argument for control (e.g. `dateStyle`, `weekday`, `month`). - For just the time use `toLocaleTimeString()`.

Browser & runtime support

EnvironmentSince version
chrome 24
firefox 29
safari 10
edge 12
node 0.12

See also