Re:You may not need Moment.js
by iamsaitam on Sunday September 19, 2021 @05:14AM
(#28582859)
For a couple of years now, date-fns(https://date-fns.org/) has been the de-facto go to library for managing Dates in Javascript.
[ Parent
| on HN ]
How is it any better or worse than Luxon? (I only ask because Moment recommends Luxon as is "spiritual successor", so I never bothered to evaluate date-fns. Should I?)
You definitely should. date-fns is similar to the lodash/ramda, in the sense that it's a bag of functions which handle dates. This makes it very easy to compose different date handling situations.
Re:You may not need Moment.js
by jestar_jokin on Sunday September 19, 2021 @10:34PM
(#28589889)
No good if you need to convert between time zones, IME.