PLEASE use joda-js on Javascript: https://js-joda.github.io/js-joda/
It's a port of the java8 date/time API, which is the most correct date-handling library there is.
It's a port of the java8 date/time API, which is the most correct date-handling library there is.
date-fns seems good, moment works well too, despite its flaws, this new one is worth looking at.
Dismissing all other libraries isn't very helpful.
And yes, I realise all other libraries are wrappers around Date. It works well enough for 99% of cases.
EDIT: My precious internet points! ;) - wait, is this not a page of examples, as linked to from the GitHub page?
You can built syntactic sugar around js-joda too.
I develop Java/kotlin as well, so I'm used to the API. It feels verbose, but it makes a lot of sense. Date-handling is complex, a library shouldn't hide that.