saas-js / saas-ui

The React component library for startups, built with Chakra UI.
https://saas-ui.dev
MIT License
1.36k stars 130 forks source link

Feature Request: Date (Range) Pickers | Add option to show Calendar Weeks #181

Open ds-clearago opened 11 months ago

ds-clearago commented 11 months ago

In our B2B context, customers and contractors are often communication to each other mentioning calendar weeks. Therefore it would make a lot of sense to show them right in the picker, just like on e. g. https://uxsolutions.github.io/bootstrap-datepicker/

image

Watch out that there are different numbering systems for calendar weeks (see https://en.wikipedia.org/wiki/Week#Numbering). We'd need the European ISO 8601 that also assumed Monday as the first day of the week

linear[bot] commented 11 months ago

SUI-338 Date (Range) Pickers | Add option to show Calendar Weeks

Pagebakers commented 10 months ago

Weeknumbers aren't built into React Aria or @internationalized/date not sure yet what is the best approach to add this feature.

ds-clearago commented 10 months ago

Yeah, a bit disappointing tbh that they don't have that. I guess with just walking through every Monday of a year with https://react-spectrum.adobe.com/internationalized/date/CalendarDate.html#weeks-in-month it's possible to get but annoying...

Otherwise, found this information for example