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.
Discussions

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
🌐 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
🌐 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
🌐 github.com
32
December 5, 2016
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
🌐 r/Frontend
31
24
July 31, 2023
People also ask

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 ...
🌐
OpenReplay
blog.openreplay.com › what-is-better--datefns-or-moment
What is better, Date-fns or moment.js?
June 26, 2023 - As a result, performance overheads are introduced even when loading a basic date, as you have to import the entire API chain. Date-fns, on the other hand, is a set of many small and independent functions that allow you to interact with date values.
🌐
Medium
thefiend.medium.com › replacing-momentjs-with-date-fns-for-a-smaller-package-size-3365f358db4d
Reduce JavaScript Bundle Size by Replacing MomentJS with Date-fns | by Jason Kam | Medium
September 30, 2023 - Date-fns is a modern, modular library that provides a similar set of features to MomentJS, but with a much smaller package size.
🌐
Quora
quora.com › What-is-better-Date-fns-or-moment-js
What is better, Date-fns or moment.js? - Quora
It pollutes global space, it doesn’t play well with ES6 modules, and is itself not modular (other than the timezone package, which you almost always want when using moment). Date-fns requires more intentional use, but if used ...
🌐
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.
Find elsewhere
🌐
StaticMania
staticmania.com › blog › javascript-date-time-library
Working with JavaScript Date and Time Libraries: Moment.js and Date-fns - StaticMania
Both Moment.js and Date-fns are ... Date-fns offering a lightweight, modular, and immutable approach, Date-fns is the preferred choice for new projects....
🌐
Form.io
mindbowser.com › home › blogs › exploring javascript date library: date-fns vs. moment.js
Choosing the Best: JavaScript Date Library Date-Fns vs. Moment.js
February 1, 2024 - Discover JavaScript Date Library efficiency with Date-Fns and Moment.js. Explore features, benefits, and choose the ideal for your projects
🌐
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
🌐
npm Trends
npmtrends.com › date-fns-vs-moment
date-fns vs moment | npm trends
Comparing trends for date-fns 4.1.0 which has 19,934,495 weekly downloads and 36,372 GitHub stars vs. moment 2.30.1 which has 13,205,002 weekly downloads and 48,089 GitHub stars.
🌐
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.
🌐
daily.dev
daily.dev › home › blog › webdev › the moment.js ultimate lightweight alternative: date-fns
The moment.js ultimate lightweight alternative: date-fns
May 6, 2021 - date-fns is a set of utility functions for JavaScript dates. Unlike moment, date-fns uses the Date object and doesn't create a new object to encapsulate it. Second, it's genuinely a set of functions.
🌐
Medium
medium.com › @k2u4yt › momentjs-vs-date-fns-6bddc7bfa21e
momentjs vs date-fns. Date handling libraries | by S.J Ryu | Medium
February 13, 2019 - OOP momentjs and function date-fns has same purpose to handle Date object but has many differences such as Immutable and mutable, OOP and function and so on. choose library as your taste. but in performance, date-fns win.
🌐
Raygun
raygun.com › blog › moment-js-vs-date-fns
Moment.js vs date-fns: How to spot slow loading scripts and fix them quickly · Raygun Blog
September 14, 2017 - Instead of wrapping dates, date-fns just extends and builds upon the functionality of JavaScript’s native date objects. I conducted testing against both Moment.js, date-fns and the native date methods where available.
🌐
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....
🌐
Slant
slant.co › versus › 10989 › 20523 › ~moment-js_vs_date-fns
Moment.js vs date-fns detailed comparison as of 2024 - Slant Co
When comparing Moment.js vs date-fns, the Slant community recommends date-fns for most people. In the question“What are the best JavaScript date formatting libraries?” date-fns is ranked 1st while Moment.js is ranked 2nd.
🌐
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