Moment.js
Some data may be outdated — see provenance labels.
Parse, validate, manipulate, and display dates in javascript. observed · 2026-09-22
Health v2 · maintenance only
91/100
- Activity 94
- Release rhythm 83
- Longevity 100
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: 50
- age_days: 5713
- days_rel: 36
- days_push: 36
- n_releases_24m: 2
Adoption not part of the score
47908 stars · 6979 forks observed · 2026-09-22
What it is AI-extracted, prompt v1, taxonomy v1, 2026-09-28, confidence 0.98
Moment.js is a JavaScript library for parsing, validating, manipulating, and formatting dates and times. It provides a simple, chainable API and extensive locale support.
Use cases
- parse dates from strings in various formats
- format dates for display in user interfaces
- calculate relative times like "5 days ago"
- perform date arithmetic such as adding or subtracting days
- handle time zones with moment-timezone
- localize date output for different languages and regions
- convert between JavaScript Date objects and ISO strings
When to choose
- You are maintaining an existing codebase that already uses Moment.js.
- You need quick, straightforward date manipulation without learning a new API.
- Your project requires extensive locale and timezone support provided by Moment.js.
- You prefer a library with a stable, well‑documented API and many examples.
When to avoid
- You are starting a new project and want a smaller, modern, immutable date library.
- Bundle size is a critical concern, as Moment.js is relatively large.
- You need tree‑shakable modules or ES‑module only builds.
- You require advanced features like date‑fns style functional programming or Luxon’s Intl support.
Facets
library · maturity maintenance
parser serialization web-development browser cross-platform date time timezone i18n legacy momentjs nodejs
5 sources
- readme: https://github.com/moment/moment · fetched 2026-09-22 · b3fbff2bdcf8
- homepage: https://momentjs.com · fetched 2026-09-14 · ab349f0f9d8f
- site_page: https://momentjs.com/docs · fetched 2026-09-14 · 0b7c9bd65dab
- registry_npm: https://registry.npmjs.org/moment · fetched 2026-09-14 · 149a7a4f8365
- registry_npm: https://registry.npmjs.org/moment-timezone · fetched 2026-09-14 · 36ec302fb512
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| moment/moment | main | 91 |
| moment/moment-timezone | plugin | 92 |
| moment/momentjs.com | docs | 75 |
For agents
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem