⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API
Moment-compatible API in about 2 kB.
- Langage
- JavaScript
- Licence
- MIT
- Étoiles
- 49k
- Dernière release
- v1.11.23
- Dernier push
- 2026-11-06
Parse, validate, manipulate, and display dates in javascript.
Day.js, date-fns, Luxon et d'autres. 4 alternatives à Moment.js, en JavaScript, TypeScript. Comparez le type de remplacement, la licence, les étoiles et la dernière release signée. Drop-in : Day.js.
| Outil | Remplacement | Étoiles | Licence | Conditions | Auto-hébergeable | Langage | Dernière release | Dernier push |
|---|---|---|---|---|---|---|---|---|
| Day.js | Drop-in | 49k | MIT | Open source | Non | JavaScript | v1.11.23 | 2026-11-06 |
| date-fns | Remplacement complet | 37k | Aucune détectée | Open source | Non | TypeScript | v4.4.0 | 2026-10-26 |
| Luxon | Remplacement complet | 16k | MIT | Open source | Non | JavaScript | 3.7.2 | 2026-08-09 |
| spacetime | Remplacement complet | 4.1k | Apache-2.0 | Open source | Non | 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.
Notes de migration → Guide de migration officiel ↗
A lightweight javascript timezone library
Timezone-aware dates with the timezone data built in, and an immutable API.