Open this example in the interactive library
Source code
const fmt = new Intl.DateTimeFormat("en-US", {
dateStyle: "medium",
timeZone: "UTC",
});
console.log(
fmt.formatRange(new Date("2026-01-10"), new Date("2026-01-12")),
);
Sample output
Jan 10 – 12, 2026
