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.
🌐
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 ·
🌐
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.
🌐
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 ...
🌐
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.
Find elsewhere
🌐
Slant
slant.co › versus › 10989 › 20523 › ~moment-js_vs_date-fns
Slant - Moment.js vs date-fns detailed comparison as of 2025
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.
🌐
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.
🌐
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.
🌐
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.
🌐
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.
🌐
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 › 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
🌐
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....
🌐
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....
🌐
Javascript-conference
javascript-conference.com › home › why you should use date-fns for manipulating dates with javascript
Why you should use date-fns for manipulating dates with JavaScript - International JavaScript Conference
July 22, 2024 - The first and one of the most important differences is already in the name of the project, since fns stands for functions. date-fns is a collection of functions that allow you to work with date values.