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
| Metric | dayjs | moment | Difference |
|---|---|---|---|
| Weekly downloads | 51,515,684 | 26,501,970 | dayjs 1.9x higher |
| 12-month download growth | +95% | +22% | dayjs +73 pts |
| Gzip size | - | - | - |
| Minified size | - | - | - |
| Dependencies | 0 | 0 | Same |
| Unpacked size | 666 kB | 4.3 MB | dayjs 6.6x smaller |
| Latest release | 1.11.23, 17 Aug 2026 | 2.31.0, 15 Sept 2026 | moment 29 days more recent |
| Releases, last 12 months | 5 | 1 | dayjs 4 more |
| First published | 10 Apr 2018 | 17 Oct 2011 | moment 6.5 years earlier |
| GitHub stars | 48,667 | 47,909 | dayjs +2% |
| Open issues | 971 | 41 | dayjs 930 more |
| Open pull requests | 365 | 16 | dayjs 349 more |
| Contributors | 358 | - | - |
| Commits, last 52 weeks | 54 | 66 | moment +22% |
| TypeScript types | Bundled | Bundled | Same |
| Module format | CommonJS | CommonJS | Same |
| Runtimes | Browser, Node.js | Browser, Node.js | Same |
| License | MIT | MIT | Same |
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
dayjs
Major versions
- 1.0.010 Apr 2018
Last 5 releases
- 1.11.2317 Aug 2026
- 1.11.2216 Aug 2026
- 1.11.2126 May 2026
- 1.11.2012 Mar 2026
- 1.11.1931 Oct 2025
132 releases in total, 5 in the last 12 months
moment
Major versions
- 1.1.027 Oct 2011
- 2.0.08 Feb 2013
Last 5 releases
- 2.31.015 Sept 2026
- 2.30.127 Dec 2023
- 2.30.026 Dec 2023
- 2.29.46 Jul 2022
- 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.
- date-fns vs dayjs100 searches/mo
- date-fns vs moment30 searches/mo
- luxon vs dayjs20 searches/mo
- moment vs luxon10 searches/mo
dayjs: dayjs npm registry, dayjs npm downloads, dayjs GitHub, dayjs jsDelivr, Day.js README, Day.js timezone plugin, Day.js installation. Data fetched 25 Sept 2026.
moment: moment npm registry, moment npm downloads, moment GitHub, moment jsDelivr, Moment.js README, Moment.js project status, Moment.js docs: Using Moment. Data fetched 25 Sept 2026.
Keyword demand: DataForSEO Google Ads search volume, US, English
Indexability: Indexed: 40 US searches/month across both orderings ("dayjs vs moment", "moment vs dayjs").