# Day.js: 6.8 out of 10

Reasonable, with limits. 3rd of 10 in [Date and time libraries](https://elestia.ai/opensource/dates/index.md).

Day.js is a tiny, zero-dependency date library with a Moment-style chainable API. It is extended through plugins, and many UI kits build on it. It is a fine pick for formatting and simple date maths, or for moving off Moment. Maintenance is slow, a large issue backlog sits mostly untouched, and time zone work through its plugin is weaker than in Luxon, date-fns with @date-fns/tz, or Temporal.

**Best for:** Teams that leave Moment.js, or that want a very small chainable date API for formatting and simple date maths.

## Scores

- **Overall: 6.8** (likely 5.7 to 7.8)
  - Claude Opus 5.5 (6.0): Day.js is a safe, tiny and widely used choice that does simple date work well, and it is the easiest path off Moment. For new projects, date-fns is better maintained, Luxon handles time zones more reliably, and Temporal (native or polyfilled) is where the platform is heading. Its slow, single-maintainer upkeep and plugin-based time zones keep it out of the strong-pick band.
  - GPT-6.2 Sol (7.5): Day.js is a strong choice for small bundles, routine date work, and apps already using Ant Design or MUI X pickers. For a general-purpose project I would pick date-fns for its native Date interoperability and greater maintenance activity. For scheduling across daylight-saving transitions, Temporal offers explicit rules for skipped and repeated local times. The recommendation depends on how much of the application's date logic runs through those transitions.
- **Needed by many: 7.6** (likely 6.6 to 8.6)
  - Claude Opus 5.5 (8.0): Most web and Node apps parse, format or compare dates, so a date library is a common need. Native Intl and the coming Temporal API remove some of that need. Day.js is general-purpose and works on any runtime, so it is not narrower than its category.
  - GPT-6.2 Sol (7.2): Parsing dates, comparing timestamps, and handling user input are common across browsers and servers. Day.js works independently of any UI framework. Built-in Intl covers many display-only cases, so the need for a separate library varies by project.
- **Helps a lot: 6.7** (likely 5.6 to 7.7)
  - Claude Opus 5.5 (6.0): Day.js covers formatting, relative time, durations and parsing through plugins, with a small, clear API and bundled types. Its weak spot is time zones: the timezone plugin has had repeated DST bugs and still needed DST fixes in August 2026. Luxon and date-fns with @date-fns/tz handle zones more rigorously. Plugin side effects make behaviour depend on what each entry point loads.
  - GPT-6.2 Sol (7.3): Version 1.11.23 has a compact immutable API, bundled types, and examples that help developers and coding agents with routine operations. Strict validation needs an explicit format and plugin setup, and the default validity check can accept dates that roll into the next month. Recent patches fixed some time-zone errors, and downstream tests still show failures around daylight-saving transitions. Fit depends on how much the application relies on named-zone arithmetic.
- **Holds up over time: 5.7** (likely 4.6 to 6.8)
  - Claude Opus 5.5 (5.0): The project is alive, with 45 commits and 4 small releases in the last year. But open issues outnumber closed ones, 482 PRs wait for review, and work rests mostly on one maintainer with no visible funding. The v2 rewrite has stalled for years. Temporal reaching browsers will draw new projects away from wrapper libraries like this one.
  - GPT-6.2 Sol (6.4): Four patch releases and 45 commits in the past year show ongoing maintenance with fewer commits than date-fns. Nearly 1,000 open issues and 482 open pull requests limit confidence in how quickly fixes will land. The maintainer receives sponsorship, and the funding available to Day.js and the number of people who can trigger releases remain unclear. Temporal has reached Stage 4 and already ships in several runtimes, which adds uncertainty about future demand.
- **Used widely: 8.1** (likely 7.3 to 8.8)
  - Claude Opus 5.5 (8.5): Day.js has 440M downloads in 4 weeks and 490k dependent repos, second only to date-fns among the active modern libraries. Many installs come through UI kits such as Ant Design and MUI pickers rather than direct choice. Its 3.6x yearly ratio is below the 4.1 median, so it is slowly losing share. Still, it beats date-fns (3.3x) and Luxon (3.4x), while the Temporal polyfills grow much faster.
  - GPT-6.2 Sol (7.6): ecosyste.ms found about 490,000 dependent repositories, behind date-fns and Moment.js and well ahead of Luxon. Four-week downloads rose 3.59 times year over year, ahead of date-fns at 3.34 times and below the catalog median of 4.1 times. That implies a loss of ground against the catalog baseline. Repeat installs and packages such as Ant Design inflate downloads, leaving the rate of new direct adoption uncertain.
- **Vouched for: 7.7** (likely 6.6 to 8.6)
  - Claude Opus 5.5 (7.0): Major UI frameworks build on it: Ant Design v5 switched from Moment to Day.js, Element Plus uses it, and MUI X offers a Day.js adapter. Independent guides keep naming it a top Moment replacement. Survey satisfaction data and recent independent benchmarks were thin, so the score stays below 8.
  - GPT-6.2 Sol (8.3): Ant Design uses Day.js by default, and Apache Superset ships it in its frontend. MUI X recommends it for pickers and measured 7.52 kB gzipped for Day.js plus its adapter, versus 11.07 kB for date-fns plus its adapter in the same setup. The strongest evidence is for UI use, and the State of JavaScript survey measures regular use, leaving satisfaction less certain.
- **Safe: 7.6** (likely 6.5 to 8.7)
  - Claude Opus 5.5 (8.0): Day.js has zero dependencies, no advisories on record, an MIT licence and a small code surface. The OpenSSF Scorecard is a middling 4.9: it has no security policy, its workflow tokens and dependencies are not pinned, and it does no SAST. Releases are automated through semantic-release, with few publishers.
  - GPT-6.2 Sol (7.1): Day.js has no runtime dependencies, uses the permissive MIT licence, and has no recorded advisories in OSV or Snyk. GitHub Actions runs tests before releasing through semantic-release. The 4.9 OpenSSF score flags weak code review, unpinned dependencies, weak workflow token permissions, and the absence of a security policy. Snyk lists one maintainer, and the exact release permissions remain unclear.

## Good

- About 2 kB core, zero dependencies and no known advisories.
- Its Moment-like chainable API makes migration easy, and AI agents write it fluently.
- Widely adopted: Ant Design, Element Plus and MUI X date pickers use it.
- Immutable objects and many community locales.

## Bad

- Time zones need the utc and timezone plugins, which have a long history of DST bugs.
- Plugins must be loaded with extend() in every entry point, and some types only work once they are.
- Slow upkeep: one main maintainer, 984 open issues, 482 open PRs and mostly locale-fix releases.
- The long-promised v2 has not shipped, and native Temporal is set to replace much of what it does.

## The numbers

- Downloads, 4 weeks: 441M
- In a year: ×3.6
- GitHub stars: 49k
- Commits, 12 months: 45
- Last npm release: Aug 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/iamkun/dayjs
- npm: https://www.npmjs.com/package/dayjs

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
