Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

moment

> 编程语言
Open source

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

47.9K stars0 likes2 views
WebsiteGitHub

About

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

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

  • Documentation
  • Changelog
  • Stack Overflow

Installation

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

bash
npm install moment

License

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

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

Issues· 58 open

View all issuesOpen on GitHub
  • #6453

    Fix release workflow

    Updated Sep 15, 2026
  • #6149

    Typo Mistake in gu.js (in Gujarati Language)

    Updated Sep 8, 2026
  • #3980

    Incorrect month diff when time involved

    BugUpdated Sep 2, 2026
  • #4127

    from()/to() wrong days calculation around a month

    Bugrelative time threshold issuesUpdated Sep 2, 2026
  • #4649

    [bug] moment.duration accepts floating point milliseconds

    floating-pointUpdated Sep 2, 2026
  • #5267

    moment("2019-08-30 23:59:59").from(moment("2019-10-25 12:00:00")) is '54.50001157407407 days ago' (should be 55.500... days ago)

    relative time threshold issuesUpdated Sep 2, 2026
  • #5600

    moment giving wrong month

    Updated Sep 2, 2026
  • #5698

    Support Short Japanese Era Name

    Updated Sep 2, 2026
  • #5515

    Different `utcOffset()` result in firefox and chrome

    Fractional-Hour UTC OffsetKnown IssueUpdated Sep 2, 2026
  • #3706

    .startOf("hour") expected result across some dst boundaries?

    BugDSTUpdated Aug 12, 2026

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言