jquense / react-widgets

Polished, feature rich, accessible form inputs built with React
http://jquense.github.io/react-widgets/
MIT License
2.34k stars 395 forks source link

DatePicker monthFormat in version 5 #1151

Open tonilaukka opened 11 months ago

tonilaukka commented 11 months ago

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.