# Date and time libraries

Parse, change, compare and show dates, times and time zones. Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.

| Rank | Project | Overall | Needed by many | Helps a lot | Holds up over time | Used widely | Vouched for | Safe | Best for |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | [date-fns](https://elestia.ai/opensource/dates/date-fns/index.md) | 8.0 | 7.7 | 8.3 | 7.1 | 8.5 | 7.7 | 7.5 | TypeScript teams that want small, tree-shakable, functional date helpers on the native Date and on any runtime, until Temporal works everywhere they need it. |
| 2 | [temporal-polyfill](https://elestia.ai/opensource/dates/temporal-polyfill/index.md) | 7.5 | 5.9 | 8.0 | 7.6 | 4.1 | 6.1 | 7.6 | Teams that want to write standard Temporal code today and drop the dependency once all browsers ship it natively. |
| 3 | [Day.js](https://elestia.ai/opensource/dates/dayjs/index.md) | 6.8 | 7.6 | 6.7 | 5.7 | 8.1 | 7.7 | 7.6 | Teams that leave Moment.js, or that want a very small chainable date API for formatting and simple date maths. |
| 4 | [Luxon](https://elestia.ai/opensource/dates/luxon/index.md) | 6.6 | 6.8 | 7.5 | 5.1 | 6.2 | 6.4 | 7.1 | Teams that need heavy time zone and calendar maths in modern browsers or Node.js today and want a chainable object API without shipping time zone data. |
| 5 | [Tempo](https://elestia.ai/opensource/dates/tempo/index.md) | 5.5 | 7.2 | 6.2 | 5.6 | 3.2 | 3.8 | 7.8 | Small front-end projects, especially FormKit users, that want tiny, locale-aware date formatting and parsing on native Date objects. |
| 6 | [Spacetime](https://elestia.ai/opensource/dates/spacetime/index.md) | 5.2 | 5.9 | 5.3 | 5.9 | 3.3 | 3.3 | 7.1 | Small apps and scripts that want readable time-zone conversion and "what time is it in X" helpers without depending on Intl, and that do not need exact historical DST. |
| 7 | [@js-temporal/polyfill](https://elestia.ai/opensource/dates/js-temporal-polyfill/index.md) | 5.0 | 6.2 | 5.7 | 4.4 | 4.7 | 4.6 | 7.0 | Projects that already use it, or teams that want the proposal champions' implementation and can accept a large, alpha-status bundle. |
| 8 | [date-fns-tz](https://elestia.ai/opensource/dates/date-fns-tz/index.md) | 4.2 | 3.8 | 5.6 | 2.7 | 4.9 | 4.7 | 6.4 | Existing date-fns v2 or v3 codebases that already use its toZonedTime/fromZonedTime/formatInTimeZone helpers and want no migration. |
| 9 | [Moment Timezone](https://elestia.ai/opensource/dates/moment-timezone/index.md) | 3.8 | 3.7 | 5.7 | 5.4 | 6.3 | 5.1 | 6.4 | Teams with an existing Moment.js codebase that need correct, current time zone data until they migrate. |
| 10 | [Moment.js](https://elestia.ai/opensource/dates/moment/index.md) | 3.6 | 6.8 | 5.4 | 4.5 | 6.6 | 4.9 | 6.7 | Teams that keep an existing Moment codebase running until they can migrate. |

## The numbers

| 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 |

All categories: https://elestia.ai/opensource/index.md
