-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Description
- [x ] I have searched the issues of this repository and believe that this is not a duplicate.
Version
2.0.0-rc.8
Environment
MacOs 10.15.7, Chrome 87.0.4280.141, Vue 2.6.*
Reproduction link
https://antdv.com/components/date-picker/
Steps to reproduce
Select last week of december 2020 (2020-12-27 - 2021-1-2) in the week picker.
What is expected?
Display the correct weeknumber 2020-53 with the default date format.
What is actually happening?
The weeknumber gets displayed as 2021-1st. The date behind is correctly set. (2020-12-30)
The date is correctly set and all functions to retrieve data with the date work properly. Only we expect the date to be displayed as 2020-53 as mentioned. This is for the best user experience cause we have 53 weeks in 2020 (in our country, which uses the ISO week numbers). Moment.js gives back weeknumber 53 when using the function isoWeek(). Is it possible to add an option to use the ISO week so we can display it correctly to our users? For instance with an option useIsoWeek which is default set false for instance.