JavaScript Date/Time Handling
Discussions revolve around the pitfalls of JavaScript's native Date object, recommendations for libraries like Luxon, date-fns, js-joda, and the upcoming Temporal API, and advice against rolling custom date/time solutions.
Activity Over Time
Top Contributors
Keywords
Sample Comments
Another reason to use exisiting date/time libraries instead of rolling your own.
Welcome to the rabbit hole that is date/time handling.
I have a date/time bug that I really dont feel like figuring out right now
It's going to be hard to have a date/time format when no standardized date/time lib.
Cool stuff. Great for people who don't want to mess with Date handling.
How does it compare to date-fns?
Is this using a proper date/time library underneath, or did you write it yourself?
I highly recommend using Luxon for dates in JS. At the very least reading up on the library.
Not all use cases related to time are too complex to just use the existing javascript Date
What’s the comparison with the well known JS/TS date time libraries such as date-fns or the older moment.js?