# moment/moment

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/moment-moment).**

47,968 stars · 6,989 forks · JavaScript · MIT

## Links

- GitHub: https://github.com/moment/moment
- Homepage: momentjs.com
- awesome-repositories: https://awesome-repositories.com/repository/moment-moment.md

## Description

Moment is a JavaScript date manipulation library used for parsing, validating, manipulating, and formatting dates and times. It provides a system for converting date strings into structured objects using the ISO 8601 standard or custom tokens.

The library includes a timezone management tool for handling UTC offsets and geographic timezones, ensuring accurate date calculations across different regions. It features an internationalized date formatter and a relative time calculator to render timestamps as human-friendly durations adapted to various cultural locales and languages.

The project covers a broad range of temporal capabilities, including date value modification, comparison, and difference calculations. It also provides tools for temporal data validation and the conversion of date objects into human-readable strings using customized display patterns.

## Tags

### Data & Databases

- [Date and Time Libraries](https://awesome-repositories.com/f/data-databases/date-and-time-libraries.md) — A comprehensive library for parsing, validating, manipulating, and formatting date and time values in JavaScript.
- [Calendar-Aware Date Offsets](https://awesome-repositories.com/f/data-databases/calendar-aware-date-offsets.md) — Adjusts timestamps using calendar rules and numeric offsets to manage different geographic timezones.
- [Date Manipulation Utilities](https://awesome-repositories.com/f/data-databases/date-manipulation-utilities.md) — Implements functional tools to determine if a date occurs before, after, or during specific intervals. ([source](https://github.com/moment/moment/blob/develop/CHANGELOG.md))
- [Internationalization](https://awesome-repositories.com/f/data-databases/date-and-time-libraries/internationalization.md) — Adapts date and time displays to regional languages and cultural conventions.

### Development Tools & Productivity

- [Date and Time Utilities](https://awesome-repositories.com/f/development-tools-productivity/date-and-time-utilities.md) — Measures the exact time elapsed between two date objects in units like months, days, or hours. ([source](https://github.com/moment/moment/blob/develop/CHANGELOG.md))
- [Date String Parsers](https://awesome-repositories.com/f/development-tools-productivity/date-and-time-utilities/relative-date-formatting/date-string-parsers.md) — Transforms date strings into structured objects using ISO 8601 formats or custom tokens with strict validation. ([source](https://github.com/moment/moment/blob/develop/.spmignore))
- [Locale Mappings](https://awesome-repositories.com/f/development-tools-productivity/date-and-time-utilities/relative-date-formatting/locale-mappings.md) — Uses lookup tables to translate date components and relative time descriptions into different languages and cultural formats.
- [Date Formatting Utilities](https://awesome-repositories.com/f/development-tools-productivity/date-formatting-utilities.md) — Provides extensive utilities for formatting date objects into human-readable strings using custom display patterns. ([source](https://github.com/moment/moment#readme))
- [Calendar Validations](https://awesome-repositories.com/f/development-tools-productivity/date-formatting-utilities/calendar-validations.md) — Verifies that date strings match specific patterns and represent real, logically valid calendar dates. ([source](https://github.com/moment/moment/blob/develop/.spmignore))
- [Token-Based Formatters](https://awesome-repositories.com/f/development-tools-productivity/date-formatting-utilities/token-based-formatters.md) — Employs a token-based engine to parse and serialize date strings using character-based pattern matching.
- [Duration Interval Calculators](https://awesome-repositories.com/f/development-tools-productivity/duration-formatters/duration-interval-calculators.md) — Provides utilities to compute time differences and convert them into human-readable calendar units.
- [Relative Date Formatting](https://awesome-repositories.com/f/development-tools-productivity/date-and-time-utilities/relative-date-formatting.md) — Measures the difference between two timestamps and displays the elapsed time in human-friendly relative terms.

### Software Engineering & Architecture

- [ISO 8601 Standards](https://awesome-repositories.com/f/software-engineering-architecture/data-exchange-standards/iso-8601-standards.md) — Implements rigid parsing and formatting logic to ensure consistent data exchange based on the ISO 8601 standard.
- [Timezone Management](https://awesome-repositories.com/f/software-engineering-architecture/timezone-management.md) — Handles Universal Coordinated Time and timezone offsets to ensure accurate calculations across geographic regions. ([source](https://github.com/moment/moment/blob/develop/CHANGELOG.md))

### User Interface & Experience

- [Temporal Validations](https://awesome-repositories.com/f/user-interface-experience/form-and-input-management/form-validation/date-input-validation/temporal-validations.md) — Verifies that date strings match specific patterns and represent real calendar dates before processing.

### Web Development

- [Internationalized Date Formatting](https://awesome-repositories.com/f/web-development/internationalized-date-formatting.md) — Adapts date, weekday, and relative time descriptions to match the languages and cultural norms of various global locales. ([source](https://github.com/moment/moment/blob/develop/CHANGELOG.md))

### Part of an Awesome List

- [Data Utilities and Libraries](https://awesome-repositories.com/f/awesome-lists/data/data-utilities-and-libraries.md) — Library for parsing, validating, and manipulating dates.
- [Date and Time Utilities](https://awesome-repositories.com/f/awesome-lists/devtools/date-and-time-utilities.md) — Classic library for parsing and formatting dates.
- [Date Utilities](https://awesome-repositories.com/f/awesome-lists/devtools/date-utilities.md) — Library for date parsing and manipulation.
