Date and time libraries
Parse, change, compare and show dates, times and time zones. We rate 10; date-fns leads with 8.0 out of 10.
The numbers
Read from GitHub, npm and the OSV advisory database on 21 November 2026. Downloads also count build servers and installs by other tools, and they grow for almost every package: for the median project we rate, they are ×4.1 of a year before.
| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
|---|---|---|---|---|---|---|
| date-fns | 482M | ×3.3 | 37k | 321 | May 2026 | 0 |
| temporal-polyfill | 31M | ×13 | 790 | 799 | Nov 2026 | 0 |
| Day.js | 441M | ×3.6 | 49k | 45 | Aug 2026 | 0 |
| Luxon | 235M | ×3.4 | 16k | 22 | Sept 2025 | 0 |
| Tempo | 569k | ×3.0 | 2.6k | 42 | Nov 2026 | 0 |
| Spacetime | 1.9M | ×3.5 | 4.1k | 189 | Nov 2026 | 0 |
| @js-temporal/polyfill | 27M | ×18 | 798 | 144 | Mar 2025 | 0 |
| date-fns-tz | 58M | ×2.7 | 1.2k | 0 | Sept 2024 | 0 |
| Moment Timezone | 99M | ×2.0 | 3.9k | 36 | Oct 2026 | 0 |
| Moment.js | 205M | +94% | 48k | 68 | Sept 2026 | 1 |