Re:You don't need libraries for internationalization of dates
by untog on Thursday February 20, 2020 @07:28AM
(#22374574)
For the love of God if you’re in the browser don’t use moment. It’s bulky and slow. Use date-fns and selectively import the functionality you’re actually using.
[ Parent
| on HN ]
Re:You don't need libraries for internationalization of dates
by yen223 on Thursday February 20, 2020 @03:15PM
(#22378157)
Note that date-fns right now doesn't have great support for duration calculations: https://github.com/date-fns/date-fns/issues/284
I wound up switching to Luxon because of this. Which is too bad, because date-fns is a fine library otherwise.