Hacker ApprovedDepartments

Moment.js

Shares rank 11 of 24 JavaScript libraries by recommenders

JavaScript date library people say saves hours on hard date problems. Critics say it is large and native APIs cover simple needs.

JavaScript date library people say saves hours on hard date problems. Critics say it is large and native APIs cover simple needs.

18 people gave an opinion

recommend it
10
criticize it
8
approval share
56%
Each figure is one person. RecommendsCriticizes

Recommended in 6 of 13 months

  1. November 2025: not recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: not recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: not recommended
  9. July 2026: not recommended
  10. August 2026: recommended
  11. September 2026: not recommended
  12. October 2026: not recommended
  13. November 2026: not recommended (month in progress)

Why it doesn’t carry the badge

  • 10 people recommend itNeeds 10 or more, met.
  • 1.2 recommenders for every criticNeeds 2 to 1 or better, not met.
  • Recommended in 6 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Solves hard date and time problems

    “Momentjs probably saved humanity millions of hours of collective coding and debugging”

    Comment from 13 Jan 2026 in “Date is out, Temporal is in”

    “the two examples given (moment and react) solve really hard problems”

    Comment from 29 Dec 2025 in “Karpathy on Programming”

What people warn about

Each mark is one comment

  • Large bundle, bundled timezone data

    “I value bundling timezone data into the app too much”

    Comment from 12 Mar 2026 in “Temporal: The 9-Year Journey to Fix Time in JavaScript”

    “my package size doubled by adding a date library”

    Comment from 12 Jan 2026 in “Date is out, Temporal is in”

    “with bundled timezone databases, of course”

    Comment from 17 Nov 2025 in “The fate of "small" open source”
  • Native APIs and smaller libraries preferred

    “I would argue that it is unwarranted to use such libraries, because we can do better in Vanilla with platform features now.”

    Comment from 19 May 2026 in “Mini Shai-Hulud Strikes Again: 314 npm Packages Compromised”

    “has been deprecated for five years in favor of smaller libraries and native APIs”

    Comment from 16 Feb 2026 in “JavaScript-heavy approaches are not compatible with long-term performance goals”
  • Too complex for simple time conversion

    “dropped in a big complex library like Moment.js just because you needed to convert a time”

    Comment from 29 Dec 2025 in “Karpathy on Programming”

    “thought they were keeping it simple by sticking to moment.js. They weren't.”

    Comment from 12 Jan 2026 in “Date is out, Temporal is in”

Other JavaScript libraries people recommend

The four most recommended other JavaScript libraries, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

Moment.js compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
jQuery1114870%1216 yrs8 ownersApproved
Picknplace.js582669%1——
Alpine.js501676%111 yr4 ownersApproved
Effect (TypeScript library)381670%102 yrs3 ownersApproved
Moment.jsThis page10856%6——
See all 24 JavaScript libraries, ranked

What people said

18 of the 19 comments that mention it, newest first. Each links to the original comment.

“I don't mind paying for quality apps”

RecommendsComment from 11 Aug 2026 in “Show HN: iPhone app takes simultaneous images from 2 lenses, fuses into 1 photo”

“Moment and Luxon are fairly good”

RecommendsComment from 20 May 2026 in “Node.js 26.0.0 (Now with Temporal)”

“I would argue that it is unwarranted to use such libraries, because we can do better in Vanilla with platform features now.”

CriticizesComment from 19 May 2026 in “Mini Shai-Hulud Strikes Again: 314 npm Packages Compromised”

“I love their pitch so I'm following them with fingers crossed.”

RecommendsComment from 24 Apr 2026 in “Show HN: Tolaria – open-source macOS app to manage Markdown knowledge bases”

“the first example you presented (on-call dashboard), was a bit too much from the get go”

MixedComment from 17 Mar 2026 in “Lies I was told about collaborative editing, Part 2: Why we don't use Yjs”

“I tried it and I just get "Loading..." forever.”

CriticizesComment from 16 Mar 2026 in “Lies I was told about collaborative editing, Part 2: Why we don't use Yjs”

“I value bundling timezone data into the app too much”

MixedComment from 12 Mar 2026 in “Temporal: The 9-Year Journey to Fix Time in JavaScript”

“JS datetime handling in both Date and Moment are disasters.”

CriticizesComment from 11 Mar 2026 in “Temporal: The 9-Year Journey to Fix Time in JavaScript”

“Moment is distinctive because (1) it's natively programmable, and (2) has a native, high-performance, live collaborative editing.”

RecommendsComment from 5 Mar 2026 in “Show HN: We want to displace Notion with collaborative Markdown files”

“has been deprecated for five years in favor of smaller libraries and native APIs”

CriticizesComment from 16 Feb 2026 in “JavaScript-heavy approaches are not compatible with long-term performance goals”

“Momentjs probably saved humanity millions of hours of collective coding and debugging”

RecommendsComment from 13 Jan 2026 in “Date is out, Temporal is in”

“my package size doubled by adding a date library”

CriticizesComment from 12 Jan 2026 in “Date is out, Temporal is in”

“thought they were keeping it simple by sticking to moment.js. They weren't.”

CriticizesComment from 12 Jan 2026 in “Date is out, Temporal is in”

“I might want it for something that needs its more advanced features.”

MixedComment from 29 Dec 2025 in “Karpathy on Programming”

“the two examples given (moment and react) solve really hard problems”

RecommendsComment from 29 Dec 2025 in “Karpathy on Programming”

“dropped in a big complex library like Moment.js just because you needed to convert a time”

CriticizesComment from 29 Dec 2025 in “Karpathy on Programming”

“Lodash or Moment.js, those are actual bona fide libraries”

RecommendsComment from 24 Dec 2025 in “Avoid Mini-Frameworks”

“with bundled timezone databases, of course”

CriticizesComment from 17 Nov 2025 in “The fate of "small" open source”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.