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

DatePicker monthFormat in version 5 #1151

Open
tonilaukka opened this issue Oct 16, 2023 · 0 comments
Open

DatePicker monthFormat in version 5 #1151

tonilaukka opened this issue Oct 16, 2023 · 0 comments

Comments

@tonilaukka
Copy link

tonilaukka commented Oct 16, 2023

I have updated our react-widgets library from version 4 to 5 and can't seem to figure out how to change the month format in the DatePicker Calender component. In previous version this was done with monthFormat prop but that's seems to be removed. Is there any way to change the monthFormat from MMM to MM? Our MontPicker component should show the selected mont as MM/YYYY (10/2023).

Here is a repro of the issue: https://codesandbox.io/s/dank-fast-hrzspz?file=/src/index.js

I would like to show months with 2-digit numbers so Jan would be 01, Feb would be 02 and so on.

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

No branches or pull requests

1 participant