# date-fns/date-fns

⏳ Modern JavaScript date utility library ⌛️

Repository: https://github.com/date-fns/date-fns
Canonical: https://ross.abutalabs.com/products/date-fns
Homepage: https://date-fns.org
Language: TypeScript
License Family: other
Topics: javascript, date, modules, utilities, nodejs, time, date-fns, hacktoberfest
Last push: 2026-08-10T08:47:59+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 86, longevity 100
- inputs: {"age_days": 4349, "days_push": 23, "days_rel": 96, "gap_med": 4, "n_releases_24m": 6}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 36645, forks 2002 (observed 2026-08-28T04:12:01.207380+00:00)

## What it is
date-fns is a modern JavaScript date utility library providing 200+ modular, immutable functions for parsing, formatting, and manipulating dates. It works in browsers and Node.js, uses native Date objects, and offers extensive locale support for internationalization.

## Use cases
- format dates as strings in JavaScript
- parse and manipulate dates in Node.js
- add or subtract time from a date
- compare and sort dates
- format dates with international locales
- handle dates across time zones
- calculate differences between dates

## When to choose
- you need a comprehensive, tree-shakeable date utility library for JavaScript or TypeScript
- you want immutable, pure functions that don't extend native Date objects
- you need internationalization with dozens of locales
- you want first-class time zone support

## When to avoid
- you need a full calendar UI component rather than date utilities
- your project already standardizes on another date library like Day.js or Luxon
- you work in a non-JavaScript language

## Facets
- artifact type: library
- maturity: stable
- function: date-time, internationalization
- domain: developer-tools, web-development
- platform: browser, cross-platform
- tags: javascript, typescript, immutable, tree-shaking, timezones, date-manipulation, localization, nodejs

## Member repositories
- date-fns/date-fns (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:12:01.207380+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:25:55.547964+00:00, confidence not recorded.
  - readme: https://github.com/date-fns/date-fns (fetched 2026-08-28T04:12:01.207380+00:00, sha faf510a8cd0e)
  - homepage: https://date-fns.org (fetched 2026-08-29T07:47:45.147777+00:00, sha a11af4739f9f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
