date-fns
⏳ Modern JavaScript date utility library ⌛️ observed · 2026-10-11
Health v2 · maintenance only
90/100
- Activity 96
- Release rhythm 78
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 4
- age_days: 4397
- days_rel: 144
- days_push: 28
- n_releases_24m: 4
Adoption not part of the score
36647 stars · 2041 forks observed · 2026-10-11
What it is AI-extracted, prompt v1, taxonomy v1, 2026-09-28, confidence 0.99
date-fns is a modern JavaScript date utility library offering over 200 pure functions for date manipulation. It works in both browser and Node.js environments and provides full TypeScript support.
Use cases
- format dates into custom strings
- parse date strings into Date objects
- calculate differences between dates
- add or subtract time intervals
- sort arrays of dates
- handle time zones with the tz extension
- localize date output for different locales
When to choose
- You need a lightweight, modular date library with tree‑shaking support.
- You prefer immutable, pure functions over mutable date objects.
- You are using TypeScript and want full type safety.
- You require built‑in internationalization (i18n) for many locales.
When to avoid
- You need extensive timezone databases beyond what the tz extension provides.
- You rely on Moment.js style mutable APIs.
- Your project demands a single massive date library with all locales bundled by default.
Facets
library · maturity active
date-time web-development backend browser modular immutable pure typescript i18n tree-shakable nodejs
2 sources
- readme: https://github.com/date-fns/date-fns · fetched 2026-10-11 · faf510a8cd0e
- homepage: https://date-fns.org · fetched 2026-09-14 · a11af4739f9f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| date-fns/date-fns | main | 90 |
| date-fns/tz | plugin | 61 |
| date-fns/utc | plugin | 66 |
| date-fns/date-fns.org | docs | 72 |
For agents
markdown · JSON · MCP: product_card(name="date-fns/date-fns")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem