GitHub
M

Moment.js

47.9k stars
Updated 9/15/2026

Parse, validate, manipulate, and display dates and times in JavaScript

datestimemanipulation
README

Moment.js

NPM version NPM downloads MIT License Coverage Status FOSSA Status

A JavaScript date library for parsing, validating, manipulating, and formatting dates.

⚠️ Moment.js is a legacy project, now in maintenance mode. New features are not being accepted. For more details, see the latest project status update.

Thank you.

Moment.js is a project of the OpenJS Foundation, which is part of the Linux Foundation.

Resources

Installation

Install Moment.js using a package manager like npm, yarn, or bun.

npm install moment

License

Moment.js is an OpenJS Foundation project and is freely distributable under the terms of the MIT license.

OpenJS Foundation

Copyright OpenJS Foundation and Moment.js contributors. All rights reserved. The OpenJS Foundation has registered trademarks and uses trademarks. For a list of trademarks of the OpenJS Foundation, please see our Trademark Policy and Trademark List. Trademarks and logos not indicated on the list of OpenJS Foundation trademarks are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.

The OpenJS Foundation | AI Coding Assistants Policy | Bylaws | Code of Conduct | Cookie Policy | Privacy Policy | Terms of Use | Trademark List | Trademark Policy

Package Information

Latest Version

v2.31.0GitHub

License

MIT

Dependencies

0 production

Community Stats

GitHub Repository

View on GitHub

Open Issues

56

Last Commit

9/15/2026