News for hackers. Stuff that matters.
Re:Temporal: Getting started with JavaScript's new date time... by Flimm on Monday June 28, 2021 @12:44PM (#27664175)
In Javascript's Date API, the month number is 0-based (January is 0), but the day number is 1-based (the first day of January is 1, not 0). That inconsistency is unexpected and makes it harder to use.

I'm glad most modern date APIs use 1-based numbers to represent the month and the day (not to mention the year from 1 AD onwards).

There are no comments on this comment yet.