# Moment.js

Parse, validate, manipulate, and display dates in javascript.

Repository: https://github.com/moment/moment
Canonical: https://ross.abutalabs.com/products/momentjs
Homepage: https://momentjs.com
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-08-23T20:27:38+00:00
Link (homepage): https://momentjs.com
Link (site_page): https://momentjs.com/docs

## Health v2 (maintenance only)
Score: 87/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 63, longevity 100
- inputs: {"age_days": 5664, "days_push": 10, "days_rel": 38, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 47914, forks 6977 (observed 2026-08-28T04:12:11.352663+00:00)

## What it is
Moment.js is a widely used JavaScript library for parsing, validating, manipulating, and formatting dates and times, with companion package moment-timezone for timezone support. It is now in maintenance mode, meaning it receives no new features and only critical fixes.

## Use cases
- parse and format dates in javascript
- display relative time like '5 minutes ago'
- convert dates between timezones
- format dates for multiple locales
- validate user-entered dates
- add or subtract days from a date
- compare whether a date is between two others

## When to choose
- maintaining an existing codebase that already uses Moment.js
- you need battle-tested date parsing with extensive locale and timezone support
- your project cannot easily migrate to modern alternatives

## When to avoid
- starting a new project - the team recommends modern alternatives like Luxon, Day.js, or date-fns
- you need bundle-size-sensitive code, since Moment is large and not tree-shakeable
- you need new features or long-term active development

## Facets
- artifact type: library
- maturity: maintenance
- function: date-time, internationalization, parser, serialization
- domain: web-development, frontend, developer-tools
- platform: browser, cross-platform
- tags: date-manipulation, timezone-support, locale-support, legacy-project, formatting, localization, nodejs, javascript

## Member repositories
- moment/moment (main) score 87
- moment/moment-timezone (plugin) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:12:11.352663+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:20:46.147912+00:00, confidence not recorded.
  - readme: https://github.com/moment/moment (fetched 2026-08-28T04:12:11.352663+00:00, sha e1a80a9f6610)
  - homepage: https://momentjs.com (fetched 2026-08-29T07:42:20.050155+00:00, sha ab349f0f9d8f)
  - site_page: https://momentjs.com/docs (fetched 2026-08-29T07:42:20.060372+00:00, sha 0b7c9bd65dab)
  - registry_npm: https://registry.npmjs.org/moment (fetched 2026-08-29T07:42:20.067296+00:00, sha 149a7a4f8365)
  - registry_npm: https://registry.npmjs.org/moment-timezone (fetched 2026-08-29T07:42:20.069500+00:00, sha 36ec302fb512)
- Data as of 2026-08-30T08:39:29.467469+00:00.
