comparar
date-fns vs Day.js
Los mismos datos para ambos, leídos de GitHub cada noche, y la relación que revisó una persona.
| Dato | date-fns | Day.js |
|---|---|---|
| Lenguaje | TypeScript | JavaScript |
| Licencia | Ninguna detectada | MIT |
| Estrellas | 37k | 49k |
| Última versión | v4.4.0 | v1.11.23 |
| Último push | 2026-09-22 | 2026-09-15 |
| Ritmo de versiones | alrededor de 4 días entre versiones | alrededor de 78 días entre versiones |
| Colaboradores activos | 2 autores de commits en la rama por defecto en los últimos 90 días | 4 autores de commits en la rama por defecto en los últimos 90 días |
| Avisos | Sin licencia detectada | ninguno |
Cómo se relacionan
Ambos sustituyen a Moment.js. Alternativas a Moment.js →
Sustitución completadate-fnsPlain functions over native Date, tree-shakable.
Sustitución directaDay.jsMoment-compatible API in about 2 kB.
date-fns
- v5.0.0-alpha.02026-05-29v5 focuses on reducing the date-fns package size. Compared to v4.3.0, this version reduces the zipped package size from…versión preliminar
- v4.4.02026-05-29This release revisits the approach to CDN usage and introduces a new package, @date-fns/cdn and deprecates the date-fns…
- v4.3.02026-05-22Kudos to @ImRodry and @puneetdixit200 for their contributions.
- v4.2.12026-05-18Fixed type definitions missing in v4.2.0 due to TypeScript misconfiguration.
- v4.2.02026-05-18This is a minor release in all senses, it only includes documentation updates (first of many) that points to the new Yo…
Day.js
- v1.11.232026-08-17plugin: timezone plugin prevent RangeError for invalid Day.js values (#3180) (dad46e6)
- v1.11.222026-08-16plugin: timezone compute instance .tz() offset without host DST (#3174) (e27ee80), closes #3169
- v1.11.212026-05-26preserve unsupported year tokens in format (#3015) (#3016) (8fda602)
- v1.11.202026-03-12Update locale km.js to support meridiem (#3017) (9d2b6a1)
- v1.11.192025-10-31added usage warnings for diff + updated unit tests (#2948) (269a7a9)
date-fns
✓ firmada La última versión, v4.4.0, lleva una firma que GitHub ha verificado.
Cargando el informe de seguridad
Day.js
sin firmar La última versión, v1.11.23, no lleva ninguna firma que GitHub haya podido verificar.
Cargando el informe de seguridad