Hacker News new | ask | show | jobs
by aabaker99 430 days ago
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.

2 comments

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.