You can use JavaScript Temporal today in Node.js 26, Chrome, Edge, and Firefox, but not yet in stable Safari. Temporal is the built-in date and time API that replaces Date. Safari 27.3 adds it, and as of December 3, 2026, that version is still in beta.
So server code can use Temporal now. Browser code needs a small fallback for Safari users until 27.3 ships. New code doesn’t need Moment, Day.js, or date-fns, while existing code that uses Day.js or date-fns can stay as it is. Moment is the one library worth moving off.
Free Bonus: JavaScript Cheat Sheet
Variables, arrays, objects, functions, and async basics in one printable reference.
Get the Free Cheat Sheet »Where Does JavaScript Temporal Work Today?
Firefox was first, in May 2025. Chrome and Edge followed in January 2026, and Node.js turned Temporal on by default in version 26. MDN’s compatibility data and each project’s release notes give these versions and dates:
| Browser or Runtime | Version | Released | Temporal |
|---|---|---|---|
| Firefox | 139 | May 27, 2025 | Yes |
| Chrome | 144 | Jan 13, 2026 | Yes |
| Edge | 144 | Jan 21, 2026 | Yes |
| Node.js | 26.0.0 | May 5, 2026 | Yes |
| Safari | 27.2 | Oct 26, 2026 | No |
| Safari | 27.3 beta | Nov 16, 2026 | Beta only |
Every version marked “Yes” has Temporal on by default, with no flag and no import. The Node.js 26.0.0 release notes list it first among the highlights. The guide to the latest Node.js version shows a one-line check for it.
Deno and Bun have it too. MDN’s data lists Temporal in Deno 2.7 and Bun 1.4.0.
When Will Safari Get Temporal?
Safari gets Temporal in version 27.3, which is in beta, and MDN’s data doesn’t list a release date for it yet. Apple’s browser is the last major one without Temporal in a stable release. Support first showed up in Safari Technology Preview 249 on July 29, 2026. Technology Preview is Apple’s early-access build for web developers, so most people never run it.
The Safari 27.3 beta release notes from November 16, 2026, list “Added support for Temporal, a modern API for working with dates and times.” caniuse updated its entry on November 28 to mark 27.3 as supported. Until 27.3 leaves beta, though, Safari users on 27.2 and older versions don’t have Temporal.
The gap covers iPhone and iPad users in other browsers, too. Apple’s App Review Guidelines require browsers on its mobile devices to use WebKit, the engine inside Safari, with exceptions only in the EU and Japan. So Chrome on an iPhone usually runs the same engine as Safari and gets Temporal when Safari does.
Why Is Temporal in ES2027?
You may have seen Temporal listed as an ES2026 feature. It belongs to ES2027, the edition of the language due in 2027.
New JavaScript features go through TC39, the committee that maintains the JavaScript standard. A proposal moves through numbered stages, and Stage 4 means it’s finished and ready for the next yearly edition. Temporal reached Stage 3 in March 2021 and stayed there for five years while browser and runtime engines implemented it.
It reached Stage 4 on March 11, 2026. Philip Chimento of Igalia presented it, and the room applauded his first slide before the vote had even happened:
Well, save that for when it actually gets approved.
TC39’s list of finished proposals gives Temporal an expected publication year of 2027, which makes it part of ES2027.
The edition label doesn’t change where you can use Temporal. Browser and runtime support does. The ES2026 roundup covers what ES2026 does include, and JavaScript trends for 2027 puts Temporal in context with the rest of next year’s changes.
What Does Temporal Fix in Date?
The Date object does too much with one type. Temporal replaces it with separate types for separate jobs. A PlainDate is a calendar day with no time or time zone, like a birthday. A ZonedDateTime is an exact moment in a named time zone, like a meeting in New York. The lesson on choosing a Temporal type walks through the rest.
Four of the fixes show up in everyday code. Each example below runs on Node.js 26.14.0 with no imports.
Months Start at 1
This reads the month of Christmas Day with both APIs:
console.log(new Date(2026, 11, 25).getMonth());
console.log(Temporal.PlainDate.from("2026-12-25").month);
11
12
Date counts months from zero, so December is 11. Temporal’s .month is 12 for December, the way a calendar shows it. You no longer add 1 before you display a month.
Adding a Week Returns a New Date
Two variables can point at the same Date. A setter such as .setDate() changes that one object, so both variables see the change:
const start = new Date(2026, 10, 21);
const end = start;
end.setDate(end.getDate() + 7);
console.log(start.toDateString());
const first = Temporal.PlainDate.from("2026-11-21");
const second = first.add({ days: 7 });
console.log(first.toString(), second.toString());
Sat Nov 28 2026
2026-11-21 2026-11-28
Look at the first line. Moving end a week ahead moved start too.
Temporal values can’t be changed after they’re created. .add() gives you a new PlainDate, so first stays on November 21 and second is November 28.
Impossible Dates Don’t Roll Over
February 30 doesn’t exist, but Date accepts it and quietly turns it into a real date:
console.log(new Date(2026, 1, 30).toDateString());
const fields = { year: 2026, month: 2, day: 30 };
console.log(Temporal.PlainDate.from(fields).toString());
try {
Temporal.PlainDate.from(fields, { overflow: "reject" });
} catch (error) {
console.log(String(error));
}
Mon Mar 02 2026
2026-02-28
RangeError: Temporal error: day value is not in a valid range.
Date carries the two extra days into March. Temporal clamps it instead. Clamping means moving the day back to the last real day of the month, February 28.
For input from a form or an API, pass { overflow: "reject" }. Temporal then throws a RangeError, so a bad date stops your code before it gets saved. A string such as "2026-02-30" is rejected either way.
Adding months follows the same rule. One month after January 31 is February 28 in Temporal, while Date lands on March 3.
Time Zones Are Part of the Value
On March 8, 2026, clocks in New York jumped from 2:00 to 3:00 a.m. for daylight saving time, so that day had only 23 hours. A ZonedDateTime knows this because it stores the zone by name:
const before = Temporal.ZonedDateTime.from(
"2026-03-08T01:30[America/New_York]",
);
console.log(before.add({ hours: 1 }).toString());
console.log(before.add({ days: 1 }).toString());
console.log(before.hoursInDay);
console.log(before.withTimeZone("Asia/Tokyo").toString());
2026-03-08T03:30:00-04:00[America/New_York]
2026-03-09T01:30:00-04:00[America/New_York]
23
2026-03-08T15:30:00+09:00[Asia/Tokyo]
One hour after 1:30 a.m. is 3:30, because 2:30 never happened that morning. One day later is 1:30 a.m. again, and the UTC offset has changed from -05:00 to -04:00. hoursInDay returns 23.
The last line shows the same moment in Tokyo. A Date has no zone of its own. Its methods work in UTC or in the computer’s local zone, and you can show Tokyo time only as text, through .toLocaleString(). Temporal uses the same zone names as Intl, such as America/New_York.
Do You Still Need a Date Library?
For new code, you usually don’t. Temporal handles the date math and time zones that people used to install a library for. For code you already have, the answer depends on which library it uses. Two of the three popular ones are fine to keep, and Moment is the one worth replacing.
New Code Can Skip the Dependency
When Temporal is available, natively or through a polyfill, it covers date math, time zones, and comparisons. Formatting works too. Temporal values have a .toLocaleString() method that uses the browser’s or Node’s built-in locale data:
const day = Temporal.PlainDate.from("2026-12-25");
console.log(day.toLocaleString("en-US", { dateStyle: "medium" }));
console.log(day.toLocaleString("de-DE", { dateStyle: "long" }));
Dec 25, 2026
25. Dezember 2026
Parsing is where you may still want a library. Temporal reads only ISO 8601 strings, the 2026-12-25 format. Code that parses text such as 25/12/2026 or Dec 25, 2026 needs its own parser or a library like date-fns.
date-fns and Day.js Can Stay
Both libraries already avoid the shared-object bug that Date has. Day.js returns a new object from every change, and date-fns functions return new Date objects without touching their input. Both handle the January 31 plus one month case the same way Temporal does, landing on February 28.
date-fns 4 added time zone support through the separate @date-fns/tz package. If you already use date-fns and need zones, upgrading is less work than a rewrite. Working code in either library can stay until you have another reason to change it.
Moment Is the One to Replace
Moment’s maintainers have called it a legacy project in maintenance mode since September 2020. Their August 17, 2026, status update keeps that label and stops ruling out a Moment 3.0, but only as a maintenance release for changes that semantic versioning requires a major version for. They have no schedule for it.
The same update says weekly downloads have more than tripled since that 2020 post. The maintainers connect most of that growth to AI coding agents, which pick Moment and add it to projects, often without a person choosing it:
Agents now select Moment, add it to projects, write code with it, and encounter it in existing dependency trees, often without a person making a deliberate library choice.
So if an assistant adds moment to your package.json, it’s worth a second look. Moment’s design has the same shared-object problem as Date. Its .add() changes the object you call it on, while Day.js returns a new one:
import moment from "moment";
import dayjs from "dayjs";
const m = moment("2026-01-31");
const m2 = m.add(1, "month");
console.log("moment mutates:", m === m2, m.format("YYYY-MM-DD"));
const dj = dayjs("2026-01-31");
const next = dj.add(1, "month").format("YYYY-MM-DD");
console.log("dayjs immutable:", next, dj.format("YYYY-MM-DD"));
moment mutates: true 2026-02-28
dayjs immutable: 2026-02-28 2026-01-31
In the first line, true means m and m2 are the same object, so the original January 31 is gone. The Day.js value is still January 31 after the addition.
When Should You Switch to Temporal?
On the server, now. New backend code on Node.js 26 or later can use Temporal with nothing to install.
In the browser, you can switch now too, as long as Safari users get a fallback. A polyfill is a package that adds a missing built-in to older environments. Install temporal-polyfill and load it only when the browser doesn’t have Temporal:
if (typeof Temporal !== "object") {
await import("temporal-polyfill/global");
}
This check uses top-level await, so it goes in an ES module, such as your app’s entry file. The /global entry point puts Temporal on globalThis. The rest of your code then works the same with native Temporal or the polyfill, and Chrome, Edge, and Firefox users never download it.
The current temporal-polyfill release is 1.0.9, from November 29, 2026. Pick it over @js-temporal/polyfill, whose last release, 0.5.1, came in March 2025, a year before Temporal reached Stage 4.
Three places will show when Safari catches up:
- The Safari 27.3 release notes, which drop the beta label when 27.3 ships
- MDN’s compatibility data, which adds a release date for 27.3
- Your own analytics, which show when most of your Safari visitors run 27.3 or later
After that, the polyfill only serves people on older devices, and you can decide when to drop it.
The Bottom Line
Temporal is finished, and it runs almost everywhere your code does. Use it for new date code today, with the polyfill check in front of browser code until Safari 27.3 is out. Leave working Day.js and date-fns code alone, and plan to retire Moment the next time you touch that code.
To learn the Temporal types properly, from PlainDate to ZonedDateTime and Duration, take the RealJS course JavaScript Dates and Times for Pythonistas.
