Hacker News new | past | comments | ask | show | jobs | submit login

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.



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: