HN Hall of Fame Weekly email

You Don't Need Moment.js

Screenshot of github.com captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 3 calendar years, with breakout response in 2 of them.

submissions
6
submitters
4
observed span
2018–2021
peak thread · 128 comments
241 pts
latest 20+ return · 2021-09-18
149 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

If you are dealing with timestamps from the past (e.g. birthdays via a datepicker that constructs Date objects), then you should watch out for different browsers' inconsistent handling of Daylight Savings Time. Moment is really indispensable here, since it includes a database of past years' DST transition dates. I wrote a blog post about it here: https://illuminatedcomputing.com/posts/2017/11/javascript-ti...

JS has been moving forward with a new Date/Time API called Temporal[1]. I haven't had a chance to use it myself, but a friend dropped Moment.js for it (I think to keep the browser from adjusting the date to the local time). New APIs (and hence, Temporal) are the type of things that if you don't know about, you can easily miss and go straight to a library for. [1]: https://2ality.com/2021/06/temporal-api.html

It’s almost always better to use a standard than grow something at home. When your project gets bigger (which most projects of interest will), the inertia of the homegrown solution will become a detriment and liability. Only simple or novel use cases should be kept as internal libraries, and dates are not simple.

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
2

100+ points or 50+ comments

Total points
407

reference only — not used in Hall rules or ranking

Total comments
214

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2018-09-12You don't really need moment.jsstevemao30
2018-09-12You don't really need moment.jsstevemao40
2018-09-14You Don't Need Moment.jsFirst breakout · Best threadggregoire24185
2020-02-05You don't (may not) need Moment.jsthunderbong80
2020-02-27You May Not Need Moment.jsfagnerbrack21
2021-09-18You may not need Moment.jsHall induction · Latest 20+ point returnthunderbong149128