Nice comparison. I’ve used both - both are fine to work with. However, as the article mentions, even moment.js has recommended you look elsewhere for new projects. Answer from caphson on reddit.com
Reddit
reddit.com › r/frontend › what is better, date-fns or moment.js?
r/Frontend on Reddit: What is better, Date-fns or moment.js?
June 29, 2023 - Indeed, as mentioned on Moment's website there is a "better" drop-in replacement for it called dayjs with mostly the same API. caphson · • 3y ago · I haven’t seen dayjs- I take a look 👍 · More replies · More replies · Small-Sound-9935 · • 3y ago · Date-fns ·
Bitstack
blog.bitsrc.io › date-fns-vs-momentjs-9833f7463751
Date-fns vs MomentJS: Choosing the Right Date Utility Library | by Chameera Dulanga | Bits and Pieces
March 4, 2025 - Date-fns simplifies the JavaScript data manipulations by providing a variety of functions. It provides more than 200 different time-related functions, and unlike MomentJS, it allows you to import a selected set of functions as needed.
Date-fns and Moment different results
Try using parseISO in date-fns, I believe that is the now recommended way to parse a date string. More on stackoverflow.com
replacing moment data with date-fns - javascript
we are migrating from moment library to date-fns in the project on which I am working. I am trying to find a soution to replace it with date-fns but I am not successful: timezone: moment(). More on stackoverflow.com
Add a brief comparison with Moment.js?
Given how much of a de-facto standard Moment.js has become, it may make sense to briefly explain how date-fns differs. More on github.com
What moment.js alternative are you using for date/time localization?
The native Intl.DateTime object if the browser support is good enough for your needs. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat More on reddit.com
What is the difference between Moment.js and Date-fns?
Moment.js is a legacy, large-sized library with mutability issues but provides strong time zone support. Date-fns is a modern, lightweight, immutable, and modular alternative with better performance and active maintenance.
staticmania.com
staticmania.com › blog › javascript-date-time-library
Working with JavaScript Date and Time Libraries: Moment.js and ...
How do I format a date using Date-fns and Moment.js?
In Moment.js, use moment().format('YYYY-MM-DD'). In Date-fns, use format(new Date(), 'yyyy-MM-dd'). Date-fns is more modular, allowing you to import only what’s needed for better performance.
staticmania.com
staticmania.com › blog › javascript-date-time-library
Working with JavaScript Date and Time Libraries: Moment.js and ...
When should I use Moment.js instead of Date-fns?
Use Moment.js if your project already relies on it and migration is not feasible, or if you require advanced time zone handling and built-in localization. However, for new projects, Date-fns is the better choice due to its performance and maintainability.
staticmania.com
staticmania.com › blog › javascript-date-time-library
Working with JavaScript Date and Time Libraries: Moment.js and ...
Videos
STOP using Moment JS and date-fns (for relative time)
06:52
Reasons To Choose Date-fns Over MomentJS | date-fns | momentjs ...
12:53
Dates in Javascript - Moment JS, Date-Fns, Luxon - YouTube
01:00
STOP using Moment JS and date-fns (for relative time) - YouTube
09:10
Chega de MomentJS e datefns! Conheça a Temporal a nova ...
Reckonsys
reckonsys.com › blogs › date-fns-vs-momentjs
Date-fns vs. Moment.js: Top Choice for Date Parsing in JavaScript -Reckonsys
May 17, 2024 - Moment.js: Allows direct modification of dates, which can lead to unexpected changes and confusion. date-fns: Never modifies the original date object, creating predictable behavior and making it easier to reason about your code.
GitHub
github.com › you-dont-need › You-Dont-Need-Momentjs
GitHub - you-dont-need/You-Dont-Need-Momentjs: List of functions which you can use to replace moment.js + ESLint Plugin · GitHub
Good library if you’re looking to replace Moment.js for one reason or another. Immutable too. —Dan Abramov, Author of Redux and co-author of Create React App. Building tools for humans. I strongly recommend using date-fns over Moment.js, it's has a nicer API and you can include only parts you need!
Starred by 13.3K users
Forked by 313 users
Languages JavaScript
Artemdemo
artemdemo.com › blog › 20181104-replacing-momentjs
Replacing moment.js with date-fns | Artem Demo
November 4, 2018 - Build with moment.js is twice as big as with date-fns. Pretty impressive.
GitHub
github.com › date-fns › date-fns › issues › 275
Add a brief comparison with Moment.js? · Issue #275 · date-fns/date-fns
December 5, 2016 - Given how much of a de-facto standard Moment.js has become, it may make sense to briefly explain how date-fns differs.
Author rauschma
NPM Compare
npm-compare.com › date-fns,dayjs,moment
date-fns vs dayjs vs moment | Date and Time Manipulation
These libraries help streamline ... modern library focusing on modularity and performance, while moment is a feature-rich, legacy library that offers comprehensive date-time functionality but is larger in size....
GitHub
github.com › you-dont-need › You-Dont-Need-Momentjs › blob › master › README.md
You-Dont-Need-Momentjs/README.md at master · you-dont-need/You-Dont-Need-Momentjs
Good library if you’re looking to replace Moment.js for one reason or another. Immutable too. —Dan Abramov, Author of Redux and co-author of Create React App. Building tools for humans. I strongly recommend using date-fns over Moment.js, it's has a nicer API and you can include only parts you need!
Author you-dont-need