On this page
  1. Intl.DateTimeFormat
  2. Signature & Overview
  3. Notes & Pitfalls
  4. Example

Intl.DateTimeFormat

Prev: NumberFormat | Up: Intl | Next: Collator
Rel: Intl, String, RegExp & Intl Guide
Ref: MDN Web Docs — Intl.DateTimeFormat
Tags: #public #web #javascript #builtins #intl #tier/core


Signature & Overview

new Intl.DateTimeFormat(locales?, options?)

Formats Date instances with locale-aware date/time styles and explicit IANA time zones.

Notes & Pitfalls

Example

const fmt = new Intl.DateTimeFormat("en-US", {
  dateStyle: "medium",
  timeZone: "UTC",
});
console.assert(fmt.format(new Date("2026-12-02T00:00:00Z")) === "Dec 2, 2026");

Linked from

Related notes