Hacker ApprovedDepartments

date-fns

Shares rank 21 of 24 JavaScript libraries by recommenders

A battle-tested JavaScript date library with pure functions that works alongside Temporal. Critics argue native platform features now make such libraries unnecessary.

A battle-tested JavaScript date library with pure functions that works alongside Temporal. Critics argue native platform features now make such libraries unnecessary.

6 people gave an opinion

recommend it
5
criticize it
1
approval share
83%
Each figure is one person. RecommendsCriticizes

Recommended in 2 of 13 months

  1. November 2025: not recommended
  2. December 2025: recommended
  3. January 2026: not recommended
  4. February 2026: not recommended
  5. March 2026: recommended
  6. April 2026: not recommended
  7. May 2026: not recommended
  8. June 2026: not recommended
  9. July 2026: not recommended
  10. August 2026: not 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

  • 5 people recommend itNeeds 10 or more, not met.
  • 5 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 2 of 13 monthsNeeds 4 or more, not 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

  • Battle-tested production library

    “proven, battle-tested production libraries”

    Comment from 29 Dec 2025 in “Karpathy on Programming”
  • Pure functions for date data

    “I'd clearly prefer a set of pure functions, into which I can pass data-only temporal objects, quite a bit like date-fns did it.”

    Comment from 11 Mar 2026 in “Temporal: The 9-Year Journey to Fix Time in JavaScript”
  • Works alongside Temporal for templated strings

    “date-fns or luxon work fine alongside Temporal if you need templated strings”

    Comment from 11 Mar 2026 in “Temporal: The 9-Year Journey to Fix Time in JavaScript”
  • Great, though Temporal offers more

    “date-fns is great but it can't give you that.”

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

What people warn about

Each mark is one comment

  • Native platform features make it unnecessary

    “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”

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.

date-fns compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
jQuery1114870%1216 yrs8 ownersApproved
Picknplace.js582669%1——
Alpine.js501676%111 yr4 ownersApproved
Effect (TypeScript library)381670%102 yrs3 ownersApproved
date-fnsThis page5183%2——
See all 24 JavaScript libraries, ranked

What people said

5 of the 6 comments that mention it, newest first. Each links to the original comment.

“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”

“date-fns or luxon work fine alongside Temporal if you need templated strings”

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

“date-fns is great but it can't give you that.”

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

“I'd clearly prefer a set of pure functions, into which I can pass data-only temporal objects, quite a bit like date-fns did it.”

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

“proven, battle-tested production libraries”

RecommendsComment from 29 Dec 2025 in “Karpathy on Programming”

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