News for hackers. Stuff that matters.
Re:How I built a date picker by munchler on Thursday January 27, 2022 @12:48AM (#30096669)
> Monday is anchored to 0, Tuesday to 1, Wednesday to 2, etc.

Sunday is actually the first day of the week (i.e. column index = 0) in almost every calendar I've used. Perhaps this varies by culture/locale?

Re:How I built a date picker by slu on Thursday January 27, 2022 @01:04AM (#30096770)
"Monday is the first day of the week according to the international standard ISO 8601, but in the US, Canada, and Japan, it's counted as the second day of the week." - https://www.timeanddate.com/calendar/days/monday.html

I've always thought of Monday as the first day of the week. It's the day that starts the workweek (and school week) and Sunday is part of the weekend.

Re:How I built a date picker by dbbk on Thursday January 27, 2022 @12:42PM (#30103527)
I find it utterly baffling that anyone out there believes Sunday is the first day of the week. It's literally the last day of the weekend.
Re:How I built a date picker by jaclaz on Thursday January 27, 2022 @06:04AM (#30098957)
Unrelated, but not much, see how Office/Excel WEEKDAY has parameters for the starting day (and numbering starting from 0 or from 1):

https://support.microsoft.com/en-us/office/weekday-function-...

Re:How I built a date picker by kkiinnpptt on Thursday January 27, 2022 @01:05AM (#30096778)
Yes it does. It's a very US thing.
Re:How I built a date picker by bnt on Thursday January 27, 2022 @01:02AM (#30096760)
Well, Monday is in most of Europe AFAIK?
Re:How I built a date picker by Maxion on Thursday January 27, 2022 @01:12AM (#30096831)
It does