dayjs vs date-fns
Date utility package requirements, types, module declarations, and provider-standard bundle measurements.
| Specification | dayjs 1.11.23 | date-fns 4.4.0 |
|---|---|---|
| Latest version | 1.11.23 | 4.4.0 |
| License | MIT | MIT |
| Runtime dependencies | 0 | 0 |
| Peer requirements | None declared | None declared |
| Node.js requirement | Not declared | Not declared |
| Type declarations | Bundled declarations | Bundled declarations |
| Gzip size | 2.99 KiB | 17.08 KiB |
| Unpacked size | 665.72 KiB | 10646.57 KiB |
| Published files | 451 | 5136 |
| Direct advisories | 0 | 0 |
How to use this comparison
Choose according to your required APIs, runtime, integration constraints, and license terms. A smaller provider bundle or higher download count does not establish the best choice. Measurements use the same provider scenario; application imports and peer dependencies can change the outcome.
Check each exact release
- dayjs@1.11.23 — dayjs@1.11.23 was published on 2026-08-17. Its manifest declares 0 runtime dependencies and 0 peer requirements. Type declarations are bundled according to the package metadata. No Node.js engine requirement is declared in this manifest.
- date-fns@4.4.0 — date-fns@4.4.0 was published on 2026-05-29. Its manifest declares 0 runtime dependencies and 0 peer requirements. Type declarations are bundled according to the package metadata. No Node.js engine requirement is declared in this manifest.
Evidence and freshness
- https://registry.npmjs.org/dayjs/1.11.23 — retrieved 2026-10-29T05:09:50.676Z
- https://api.deps.dev/v3/systems/npm/packages/dayjs/versions/1.11.23:dependencies — retrieved 2026-10-28T23:30:07.669Z
- https://bundlephobia.com/api/size?package=dayjs%401.11.23 — retrieved 2026-10-28T23:30:07.769Z
- https://api.deps.dev/v3/systems/npm/packages/dayjs/versions/1.11.23 — retrieved 2026-10-29T05:09:50.839Z
- https://api.deps.dev/v3/projects/github.com%2Fiamkun%2Fdayjs — retrieved 2026-10-29T05:09:51.075Z
Evidence and freshness
- https://registry.npmjs.org/date-fns/4.4.0 — retrieved 2026-10-29T05:08:26.413Z
- https://bundlephobia.com/api/size?package=date-fns%404.4.0 — retrieved 2026-10-28T23:29:57.975Z
- https://api.deps.dev/v3/systems/npm/packages/date-fns/versions/4.4.0 — retrieved 2026-10-29T05:08:26.263Z
- https://api.deps.dev/v3/systems/npm/packages/date-fns/versions/4.4.0:dependencies — retrieved 2026-10-28T23:29:58.036Z
- https://api.deps.dev/v3/projects/github.com%2Fdate-fns%2Fdate-fns — retrieved 2026-10-29T05:08:26.620Z