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
OpenReplay
blog.openreplay.com › what-is-better--datefns-or-moment
What is better, Date-fns or moment.js?
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.
Videos
Reckonsys
reckonsys.com › blogs › date-fns-vs-momentjs
Date-fns vs. Moment.js: Top Choice for Date Parsing in JavaScript -Reckonsys
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.
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.
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 314 users
Languages JavaScript
Artemdemo
artemdemo.com › blog › 20181104-replacing-momentjs
Replacing moment.js with date-fns | Artem Demo
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
October 30, 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....