It is now common knowledge that in 1995 Brendan was given only 10 days to write the JavaScript language and get it into Netscape. Date handling is a fundamental part of almost all programming languages, and JavaScript had to have it. That said, it’s a complex problem domain and there was a short timeline. Brendan, under orders to “make it like Java” copied the date object from the existing, infant, java.Util.Date date implementation. This implementation was frankly terrible. In fact, basically all of it’s methods were deprecated and replaced in the Java 1.1 release in 1997. Yet we’re still living with this API 20 years later in the JavaScript programming language. ~ https://maggiepint.com/2017/04/09/fixing-javascript-date-getting-started/
GOD the date library in Javascript is atrocious, genuinely it is borderline useless. God bless momentjs
@candyman337
Momentjs is deprecated and discouraged to use in production. Temporal is something to go to in future.https://www.youtube.com/watch?v=oOK3UzLJ_Cs
List of alternatives to momentjs from momentjs’ team:
https://momentjs.com/docs/#/-project-status/recommendations/I belive day js uses all the same functions or was that luxon?
Yeah I know, but it was so good, I should have mentioned that though, so thanks for linking alternatives!