Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ds-clearago opened this issue Dec 18, 2023 · 3 comments
Labels
Planned Will be worked on

Comments

@ds-clearago
Copy link

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

Copy link

linear bot commented Dec 18, 2023

@ds-clearago ds-clearago changed the title Date (Range) Pickers | Add option to show Calendar Weeks Feature Request: Date (Range) Pickers | Add option to show Calendar Weeks Dec 18, 2023
@Pagebakers Pagebakers added the Planned Will be worked on label Dec 24, 2023
@Pagebakers
Copy link
Contributor

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

@ds-clearago
Copy link
Author

ds-clearago commented Jan 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Planned Will be worked on
Projects
None yet
Development

No branches or pull requests

2 participants