News for hackers. Stuff that matters.
Re:Do not use 'week year': YYYY by cookie_monsta on Tuesday January 04, 2022 @04:47PM (#29801024)
> 0 indexed months are whack

Why, if everything else in JS is 0 indexed? Isn't consistency a good thing in a language? If they'd gone the other way, wouldn't there be people here complaining that 1 indexing is whack?

Re:Do not use 'week year': YYYY by jazzyjackson on Tuesday January 04, 2022 @06:57PM (#29802820)
Well because days are returned 1-indexed and calendars in general are 1-indexed, but of course the internal 'getMonth' method isn't meant to be a calendar, it's meant to provide an array index to ["January", "February", ...] as an interface to the other methods of printing a human-readable form.
Re:Do not use 'week year': YYYY by 6510 on Tuesday January 04, 2022 @05:31PM (#29801675)