Skip to content

Bug: wrong week number when using weekStartsOn #1811

Answered by gpbl
pahen asked this question in Support
Discussion options

You must be logged in to vote

Set the ISOWeek prop to switch to the ISO Week Date: https://codesandbox.io/s/day-picker-sandbox-forked-4zpvn6?file=/src/Calendar.js

I understand this was an option hidden in the docs, so I've added more details:
https://react-day-picker.js.org/basics/customization#switching-to-iso-week-dates. Thanks for the report!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pahen
Comment options

Answer selected by gpbl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1810 on June 17, 2023 11:31.