Day.js
Reasonable, with limits. 3rd of 10 date and time libraries.
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
Overall6.8
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 6.0, likely 5.0 to 7.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.
- peers date-fns commitsLastYear: 321 commits for date-fns against 45 for Day.js
- blog.openreplay.com/fr/fuseaux-horaires-javascript: Time zone guidance points to Temporal, Luxon or date-fns with @date-fns/tz
- github.com/iamkun/dayjs/releases: Small maintenance releases only
- npm downloadsLast4Weeks: Grows below the median
GPT-6.2 Sol: 7.5, likely 6.4 to 8.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.
- mui.com/x/react-date-pickers/base-concepts: Independent comparison supports the small-bundle use case.
- ant.design/docs/react/use-custom-date-library: Ant Design ships Day.js by default.
- github.com/date-fns/date-fns/blob/main/pkgs/core/docs/timeZones.md: Documents interoperability with native Date and explicit time-zone contexts.
- github commitsLastYear and peers date-fns commitsLastYear: 45 commits for Day.js versus 321 for date-fns.
- github.com/mui/mui-x/pull/23752: Reports day-boundary and offset errors in current Day.js use.
- developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime: Temporal exposes explicit handling for skipped and repeated local times.
Needed by many7.6
How many developers need a tool for this job?
Claude Opus 5.5: 8.0, likely 7.0 to 9.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.
- dependents: 490k repos and 14.8k packages depend on it, so the need is broad
- infoq.com/news/2026/03/state-of-js-survey-2025: State of JS 2025: date handling is still a common developer pain point
GPT-6.2 Sol: 7.2, likely 6.1 to 8.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.
- github.com/iamkun/dayjs: Framework-independent API for parsing, manipulation, comparison, and display.
- 2025.stateofjs.com/en-US/other-tools: 2,629 respondents reported regular Day.js use.
- developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat: Native locale-aware and time-zone-aware formatting.
Helps a lot6.7
How well does it do the job for those who need it?
Claude Opus 5.5: 6.0, likely 5.0 to 7.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.
- github.com/iamkun/dayjs/releases: Timezone plugin DST offset fixes as late as v1.11.22 (Aug 2026)
- thoughtworks.com/insights/blog/programming-languages/battle-wits-datetime-pt2: Independent write-up of DST and time zone calculation errors
- pkgpulse.com/guides/best-javascript-date-libraries-2026: Plugins become part of the app contract, and edge cases differ from Moment
- dev.to/gerreth/comment/1i48f: A user moved from Day.js to Luxon over time zone and DST issues
- npm hasTypes: Ships TypeScript types
GPT-6.2 Sol: 7.3, likely 6.2 to 8.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.
- day.js.org/docs/en/installation/typescript: Built-in declarations and examples for imports and plugin registration.
- day.js.org/docs/en/parse/is-valid: Documents rollover in default validation and requirements for strict mode.
- github.com/iamkun/dayjs/releases: August patches fixed a host-offset error and a RangeError for invalid values.
- github.com/mui/mui-x/pull/23752: Downstream tests on 1.11.23 document remaining named-zone failures.
- github.com/iamkun/dayjs/pull/3363: Open November patch for stale offsets in calendar arithmetic.
Holds up over time5.7
Will it still be a good choice in two years?
Claude Opus 5.5: 5.0, likely 4.0 to 6.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.
- github commitsLastYear: 45 commits, against 321 for date-fns
- github openIssues/closedIssues: 984 open against 883 closed, so a large backlog
- github openPullRequests: 482 open PRs
- github.com/iamkun/dayjs/releases: Recent releases are mostly locale and small plugin fixes; no v2
- dayjs v2 alpha: The v2 branch has sat in alpha for years
GPT-6.2 Sol: 6.4, likely 5.1 to 7.6
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.
- github commitsLastYear, releasesLastYear, openIssues and openPullRequests: 45 commits, four releases, 984 open issues, and 482 open pull requests.
- peers date-fns commitsLastYear: date-fns recorded 321 commits over the same period.
- github.com/iamkun/dayjs/releases: Recent stable releases stayed on the 1.11 patch line.
- security.snyk.io/package/npm/dayjs: Lists one package maintainer.
- github.com/sponsors/iamkun: Sponsorship supports the maintainer's work on several projects.
- github.com/tc39/proposal-temporal: Stage 4 with native implementations in Chrome, Firefox, and Node.js.
Used widely8.1
How many use it, and is that growing?
Claude Opus 5.5: 8.5, likely 8.0 to 9.0
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.
- npm downloadsLast4Weeks: 440.7M now against 122.8M a year ago: 3.59x, below the 4.1 median
- dependents repos: 490k, against date-fns 750k and Luxon 78k
- peers temporal-polyfill: Temporal polyfills grew 13x to 18x, though from a small base
- github stars: 48.6k stars, the most in the category
GPT-6.2 Sol: 7.6, likely 6.5 to 8.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.
- dependents repos and packages: ecosyste.ms found 490,144 repositories and 14,783 packages.
- npm downloadsLast4Weeks and downloadsSame4WeeksYearAgo: 440.7 million downloads versus 122.8 million a year earlier.
- medianDownloadsRatio and peers: Day.js trails the catalog growth baseline and the date-fns dependent repository count.
- github stars and bluesky posts: 48,647 stars and one recent Bluesky post linking to the repository.
- ant.design/docs/react/use-custom-date-library: Day.js ships as the default date library in a widely used component library.
Vouched for7.7
Who stands behind it being good?
Claude Opus 5.5: 7.0, likely 6.0 to 8.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.
- Ant Design v5 / Element Plus / MUI X AdapterDayjs: Popular UI frameworks build on Day.js
- reintech.io/blog/date-fns-vs-dayjs-vs-luxon-comparison-2026: 2026 comparison lists it among the three main choices
- pkgpulse.com/guides/best-javascript-date-libraries-2026: Recommended as the least disruptive Moment migration
GPT-6.2 Sol: 8.3, likely 7.2 to 9.2
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.
- ant.design/docs/react/use-custom-date-library: Default date library for Ant Design.
- github.com/apache/superset/blob/master/CHANGELOG/6.1.0.md: Superset's release lists Day.js dependencies across frontend chart plugins.
- mui.com/x/react-date-pickers/base-concepts: July 2026 Vite comparison found Day.js had the smallest picker bundle.
- 2025.stateofjs.com/en-US/other-tools: Regular use ranked below date-fns and above Luxon among respondents.
Safe7.6
How safe is it to depend on?
Claude Opus 5.5: 8.0, likely 7.0 to 9.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.
- npm dependencies: 0 runtime dependencies
- advisories total: No OSV advisories
- scorecard score: 4.9; Security-Policy, Token-Permissions and Pinned-Dependencies score 0
- npm license: MIT
GPT-6.2 Sol: 7.1, likely 5.9 to 8.3
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.
- npm dependencies and license: Zero runtime dependencies and an MIT licence.
- advisories total and last24Months: OSV returned zero advisories for the package.
- scorecard score and checks: 4.9 overall, with low scores for review, token permissions, pinning, and security policy.
- raw.githubusercontent.com/iamkun/dayjs/v1.11.23/.github/workflows/release.yml: The tagged workflow gates automated releases on lint and tests.
- security.snyk.io/package/npm/dayjs: Lists one maintainer and no direct vulnerabilities for 1.11.23.
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
- npm downloads, 4 weeks
- 441M ×3.6 in a year
- GitHub stars
- 49k
- Commits, 12 months
- 45
- npm version
- 1.11.23 Aug 2026
- Versions, 12 months
- 4
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 4.9 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (iamkun/dayjs), npm (dayjs), OSV and the OpenSSF Scorecard.
Date and time libraries
- 8.0date-fns
- 7.5temporal-polyfill
- 6.8Day.js
- 6.6Luxon
- 5.5Tempo
- 5.2Spacetime
- 5.0@js-temporal/polyfill
- 4.2date-fns-tz
- 3.8Moment Timezone
- 3.6Moment.js