⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API
Moment-compatible API in about 2 kB.
- Language
- JavaScript
- Licence
- MIT
- Stars
- 49k
- Latest
- v1.11.23
- Last push
- 2026-11-06
alternatives to
Parse, validate, manipulate, and display dates in javascript.
Day.js, date-fns, Luxon and more. 4 alternatives to Moment.js, in JavaScript, TypeScript. Compare fit, licence, stars and the latest signed release. Drop-in: Day.js.
| Tool | Fit | Stars | Licence | Terms | Self-hosted | Language | Latest | Last push |
|---|---|---|---|---|---|---|---|---|
| Day.js | Drop-in | 49k | MIT | Open source | No | JavaScript | v1.11.23 | 2026-11-06 |
| date-fns | Full replacement | 37k | None detected | Open source | No | TypeScript | v4.4.0 | 2026-10-26 |
| Luxon | Full replacement | 16k | MIT | Open source | No | JavaScript | 3.7.2 | 2026-08-09 |
| spacetime | Full replacement | 4.1k | Apache-2.0 | Open source | No | JavaScript | 7.17.1 | 2026-11-09 |
4 alternatives
⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API
Moment-compatible API in about 2 kB.
⏳ Modern JavaScript date utility library ⌛️
Plain functions over native Date, tree-shakable.
⏱ A library for working with dates and times in JS
Immutable, with Intl-based time zones, from Moment's maintainers.
Migration notes → Official migration guide ↗
A lightweight javascript timezone library
Timezone-aware dates with the timezone data built in, and an immutable API.