2KB immutable date time library alternative to Moment.js with the same modern API
Dayjs is 2KB immutable date time library alternative to Moment.js with the same modern API . Licensed under MIT, it is extremely popular in the JavaScript ecosystem with 44.7M weekly downloads.
Dayjs has an good overall health score of 79/100. Its strongest dimension is popularity (100/100), while quality (50/100) is the area with most room for improvement. This package is in good shape overall.
The best package for every category — one PDF.
Join 500+ devs. No spam.
date-fns vs Day.js vs Moment.js 2026: Day.js is 2KB, date-fns is tree-shakeable, Moment is deprecated. Compare bundle size, API design, and timezone support.
2026-04-13T00:00:00.000Zdate-fns v4, the Temporal API, and Day.js compared for date handling in JavaScript 2026. Immutability, timezone support, bundle size, and when to use each.
2026-03-09T00:00:00.000Zdate-fns is 13KB, Day.js is 2KB, Luxon is 23KB. Compare tree-shaking, timezone support, and Temporal API readiness to pick the right date library for 2026.
2026-03-08T00:00:00.000Z