Skip to content
JS
Comparison

dayjs vs moment

dayjs is a date library with a largely Moment.js-compatible API, extended through plugins, and moment is a date library for parsing, validating, manipulating and formatting dates.

Date and timePackage data 25 Sept 2026
dayjsv1.11.23, 17 Aug 2026

Date library with a largely Moment.js-compatible API, extended through plugins.

$ npm install dayjs
momentv2.31.0, 15 Sept 2026

Date library for parsing, validating, manipulating and formatting dates.

$ npm install moment
MetricdayjsmomentDifference
Weekly downloads51,515,68426,501,970dayjs 1.9x higher
12-month download growth+95%+22%dayjs +73 pts
Gzip size---
Minified size---
Dependencies00Same
Unpacked size666 kB4.3 MBdayjs 6.6x smaller
Latest release1.11.23, 17 Aug 20262.31.0, 15 Sept 2026moment 29 days more recent
Releases, last 12 months51dayjs 4 more
First published10 Apr 201817 Oct 2011moment 6.5 years earlier
GitHub stars48,66747,909dayjs +2%
Open issues97141dayjs 930 more
Open pull requests36516dayjs 349 more
Contributors358--
Commits, last 52 weeks5466moment +22%
TypeScript typesBundledBundledSame
Module formatCommonJSCommonJSSame
RuntimesBrowser, Node.jsBrowser, Node.jsSame
LicenseMITMITSame

Green marks the smaller size or the more recent release. Bold marks the higher count, with no judgement implied. Sizes are for the whole package per Bundlephobia. Growth compares the average of the last 4 weeks with the first 4 weeks of the 52-week series.

dayjs50.9m latest weekmoment26.5m latest week
Week of 23 Sept 2025Week of 15 Sept 2026
Weekly npm downloads, 52 weeks. Y axis starts at zero. Values are not smoothed.

dayjs

Major versions
  1. 1.0.010 Apr 2018
Last 5 releases
  1. 1.11.2317 Aug 2026
  2. 1.11.2216 Aug 2026
  3. 1.11.2126 May 2026
  4. 1.11.2012 Mar 2026
  5. 1.11.1931 Oct 2025
132 releases in total, 5 in the last 12 months

moment

Major versions
  1. 1.1.027 Oct 2011
  2. 2.0.08 Feb 2013
Last 5 releases
  1. 2.31.015 Sept 2026
  2. 2.30.127 Dec 2023
  3. 2.30.026 Dec 2023
  4. 2.29.46 Jul 2022
  5. 2.29.317 Apr 2022
77 releases in total, 1 in the last 12 months
dayjs

Chainable, immutable wrapper object

moment

Chainable, mutable wrapper object

dayjs
  • Immutable and chainable. The README describes the API as largely Moment.js-compatible.
  • Extra features are added through plugins loaded with dayjs.extend().
  • Time zone support comes from the utc and timezone plugins.
  • Locales are loaded on demand and are not included unless imported.
moment
  • The README says: "Moment.js is a legacy project, now in maintenance mode. New features are not being accepted."
  • The project status page says the mutable API will not be redesigned.
  • The same page says a 3.0 release is no longer ruled out, but only as a maintenance release with no schedule announced.
  • Published as CommonJS.
  • Need no runtime dependenciesBoth
  • Module formatBoth CommonJS
  • Need TypeScript types in the package itselfBoth
  • Node.js version requirementdayjs: none declared; moment: * (engines field in package.json)
  • Need the more recent releasemoment (2.31.0 on 15 Sept 2026 vs 1.11.23 on 17 Aug 2026)
  • Higher weekly npm downloadsdayjs (51.5m vs 26.5m)

Each line is generated from the data above.

Indexability: Indexed: 40 US searches/month across both orderings ("dayjs vs moment", "moment vs dayjs").