Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I still like Moment because it offers better control of time zones that aren’t the browsers time zone when compared to the builtin Date APIs.

Do you have a recommendation to replace Moment for that use case?

I’m hopeful for the future with JavaScript Temporal.



A maintainer of moment.js has moved on with an immutable rewrite called luxon.js. Highly recommended.

https://github.com/moment/luxon/blob/master/docs/why.md


dayjs is a similar library that I’ve used to replace Moment with minimal effort.




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

Search: