# Moment.js to date-fns, Luxon or Temporal: Status | gen2.dev

> Moment.js is in maintenance mode: security fixes, no new features. What its maintainers say, the alternatives, and what changes when you move.

Source: https://gen2.dev/successors/moment-js/

---

Successor Map · Frontend and mobile frameworks

# Moment.js to date-fns, Luxon or Temporal: a legacy library that still works

Moment's maintainers declared it a legacy project in maintenance mode in 2020 and confirmed that in 2026. New code uses Luxon, date-fns or, where it is available, the Temporal API built into JavaScript.

![Slide: Moment.js on the left, an arrow, and date-fns, Luxon or Temporal on the right.](https://gen2.dev/img/successor-moment-js.png)

Status of the old tool

Maintenance only

Effort to move

Mechanical

gen2.dev's view

Move when convenient

Sources checked

2026-11-28

## Key facts

Gen 1

![Moment.js logo](https://gen2.dev/icons/tech/moment-js.png)Moment.js

Gen 2

![Luxon logo](https://gen2.dev/icons/tech/luxon.png)![date-fns logo](https://gen2.dev/icons/tech/date-fns.png)Luxon, date-fns or the Temporal API

Kind of tool

[Frontend and mobile frameworks](https://gen2.dev/successors/frontend/)

Status of Gen 1

Maintenance only Moment's Project Status Update of August 17, 2026 keeps the project in the maintenance mode it first declared on September 14, 2020.

Effort to move

Mechanical: same ideas, different calls

What breaks

Moment objects are mutable and its parser is lenient, while Luxon objects are immutable, count months from 1 and parse strictly.

Should you move?

Move when convenient Moment's maintainers still commit to fixing critical security problems, so there is no deadline, only a library that will not gain features. This is gen2.dev's view, not the maintainers'.

Sources checked

2026-11-28, [7 sources](#sources)

## Gen 1 and Gen 2 side by side

npm registry

![Moment.js logo](https://gen2.dev/icons/tech/moment-js.png)Gen 1

![Luxon logo](https://gen2.dev/icons/tech/luxon.png)Gen 2

Package

[moment](https://www.npmjs.com/package/moment)

[luxon](https://www.npmjs.com/package/luxon)

Latest version

2.31.0

3.7.2

Latest release

Sep 15, 2026

Sep 5, 2025

First release

Oct 17, 2011

May 24, 2017

License

MIT

MIT

Downloads, last week

48,151,422

55,880,612

Read from each package registry on November 29, 2026. Downloads include automated installs such as build servers, so compare them as a trend, not a head count.

## What Gen 1 was

Moment.js was the date library for a generation of JavaScript. It parsed, compared, formatted and did arithmetic on dates at a time when the built-in `Date` object made all of that painful. Its latest release, 2.31.0 on September 14, 2026, was a security and bug-fix release.

On September 14, 2020 its maintainers published a status post that said, "We now generally consider Moment to be a legacy project in maintenance mode." The next line is the one people remember: "It is not dead, but it is indeed done."

## What replaced it

There is no single successor.

-   **Luxon** comes from the same GitHub organization as Moment. It leaves localization and time zones to the `Intl` API built into the platform.
-   **date-fns** describes itself as a "modern JavaScript date utility library."
-   **Temporal** is the long-term answer: a date and time API in the language itself. MDN says it is "designed as a full replacement" for `Date`. Moment's 2020 post said the team wanted to promote it. MDN still marks Temporal as limited availability, because it does not work in some of the most widely used browsers.

## What moving involves

The ideas are the same and the calls are different, so the work is mostly find, replace and retest.

The cheapest first step is to stop calling the date library from everywhere. Put your own small date module in front of it, point the application at that, and then change what is behind it. That is [branch by abstraction](https://gen2.dev/guide/branch-by-abstraction/) at its smallest, and it means the next change of date library touches one file.

## What breaks

Luxon's guide for Moment users lists the traps:

-   **Mutability.** "Luxon's objects are immutable, whereas Moment's are mutable." Code that changed a Moment object in place and relied on the change being visible elsewhere will silently stop working.
-   **Months.** Luxon counts months from 1. Moment and the native `Date` count from 0.
-   **Parsing.** "Luxon parsers are very strict, whereas Moment's are more lenient." Input that Moment accepted may now be rejected.
-   **Time zones.** Luxon needs no plugin for them, so Moment Timezone calls have to be rewritten too.

The other trap is indirect. The 2020 post points out that other libraries, especially date pickers and graphing libraries, take Moment as a dependency. Removing it from your own code may not remove it from the bundle.

## Should you move?

Move when you are working in that code anyway. The August 17, 2026 update keeps Moment in maintenance mode: no new user-facing features, no redesign of the mutable API, and a commitment to address critical security concerns. It also says maintenance mode "no longer categorically rules out Moment 3.0," with no schedule announced.

Staying is reasonable for an application that already uses Moment, understands its limits, or depends on libraries that require it. New projects should start on something else.

## Common questions

### Is Moment.js dead?

Not yet. It is in maintenance only. Moment's Project Status Update of August 17, 2026 keeps the project in the maintenance mode it first declared on September 14, 2020.

### What replaced Moment.js?

Luxon, date-fns or the Temporal API. Effort to move: Mechanical: same ideas, different calls

### Should I move off Moment.js?

gen2.dev's view: Move when convenient. Moment's maintainers still commit to fixing critical security problems, so there is no deadline, only a library that will not gain features.

## Sources

1.  [Moment.js news: Project Status Update (August 17, 2026) and Project Status (September 14, 2020) - momentjs.com](https://momentjs.com/news/) - Both maintenance policies: what the maintainers will and will not do, the reasons to stay, and the statement that Moment 3.0 is no longer ruled out.
2.  [Moment.js Documentation - momentjs.com](https://momentjs.com/docs/) - The banner stating that Moment.js is a legacy project in maintenance mode.
3.  [moment/moment CHANGELOG - GitHub](https://raw.githubusercontent.com/moment/moment/develop/CHANGELOG.md) - Lists 2.31.0, released September 14, 2026, with a security fix and bug fixes; the npm registry shows 2.31.0 as the latest version.
4.  [moment/moment README - GitHub](https://github.com/moment/moment) - States that Moment.js is a legacy project in maintenance mode and that new features are not being accepted.
5.  [For Moment users - Luxon documentation](https://raw.githubusercontent.com/moment/luxon/master/docs/moment.md) - The differences between Luxon and Moment: immutability, month numbering, Intl, time zones and strict parsing.
6.  [Temporal - MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal) - Describes Temporal as designed as a full replacement for Date, and marks it as limited availability, not Baseline.
7.  [date-fns home page - date-fns.org](https://date-fns.org/) - Describes date-fns as a modern JavaScript date utility library.
8.  [moment - npm](https://www.npmjs.com/package/moment) - latest version, release dates, license and last week's downloads, read on November 29, 2026
9.  [luxon - npm](https://www.npmjs.com/package/luxon) - latest version, release dates, license and last week's downloads, read on November 29, 2026

Sources checked on 2026-11-28. Tools change status quickly; if this date is old, read the sources before acting on it.

## How to do the move

The pattern that fits this kind of replacement:

[Branch by abstraction](https://gen2.dev/guide/branch-by-abstraction/)

[All successor entries](https://gen2.dev/successors/)

## More in Frontend and mobile frameworks

-    [![Apache Cordova logo](https://gen2.dev/icons/tech/cordova.png) Apache Cordova to Capacitor Still active A real project Leave it](https://gen2.dev/successors/cordova/)
-    [![Backbone.js logo](https://gen2.dev/icons/tech/backbone.png) Backbone.js to React or Vue Still active A real project Move when convenient](https://gen2.dev/successors/backbone/)
-    [![Gatsby logo](https://gen2.dev/icons/tech/gatsby.png) Gatsby to Next.js Still active A real project Move when convenient](https://gen2.dev/successors/gatsby/)
-    [![jQuery Mobile logo](https://gen2.dev/icons/tech/jquery-mobile.png) jQuery Mobile to a responsive web app Abandoned A real project Move now](https://gen2.dev/successors/jquery-mobile/)
-    [![jQuery logo](https://gen2.dev/icons/tech/jquery.png) jQuery to native browser APIs Still active Mechanical Move when convenient](https://gen2.dev/successors/jquery/)
-    [![Knockout.js logo](https://gen2.dev/icons/tech/knockout.png) Knockout.js to Vue or Svelte Still active A real project Move when convenient](https://gen2.dev/successors/knockout/)
-    [![Polymer logo](https://gen2.dev/icons/tech/polymer.png) Polymer to Lit Maintenance only A real project Move when convenient](https://gen2.dev/successors/polymer/)
-    [![Prototype and Scriptaculous logo](https://gen2.dev/icons/tech/prototype-scriptaculous.png) Prototype and Scriptaculous to native browser APIs Abandoned Mechanical Leave it](https://gen2.dev/successors/prototype-scriptaculous/)
-    [![Redux logo](https://gen2.dev/icons/tech/redux.png) Redux to Redux Toolkit Deprecated Mechanical Move when convenient](https://gen2.dev/successors/redux/)
-    [![Vue 2 logo](https://gen2.dev/icons/tech/vue-2.png) Vue 2 to Vue 3 Abandoned A real project Move now](https://gen2.dev/successors/vue-2/)
-    [![Xamarin logo](https://gen2.dev/icons/tech/xamarin.png) Xamarin to .NET MAUI Abandoned A real project Move now](https://gen2.dev/successors/xamarin/)

[All frontend and mobile frameworks](https://gen2.dev/successors/frontend/)
