dayjsv1.11.23
2KB immutable date time library alternative to Moment.js with the same modern API
| Metric | date-fns | dayjs |
|---|---|---|
| Weekly downloads | 122.2Mleads | 111.6M |
| Monthly downloads | 469.0Mleads | 422.6M |
| Yearly downloads | 3883.4Mleads | 2784.6M |
| GitHub stars | 37K | 49Kleads |
| Forks | 2K | 3Kleads |
| Open issues | 1126leads | 1462 |
| Bundle (gzip) | 17.1kb | 3.0kbleads |
| License | MIT | MIT |
| Latest release | May 29, 2026 | Aug 17, 2026 |
Overall winnerdayjs
date-fns 3dayjs 4
dayjs has a slight edge over date-fns, but both are solid choices. Consider your priorities before deciding.
date-fns leads with 469.0M monthly downloads
dayjs has a larger community with 49K GitHub stars
dayjs is lighter at 3.0kb gzipped, 5.7x lighter
Both projects have been updated recently