With date-fns adapter, date picker date formatting for days of month < 10 always has zero padding, even when format specifies otherwise. #12386
Labels
component: pickers
This is the name of the generic UI component, not the React module!
status: expected behavior
Does not imply the behavior is intended. Just that we know about it and can't work around it
Steps to reproduce
Link to live example (based on documentation example)
https://codesandbox.io/embed/recursing-shockley-xshcg6?fontsize=14&hidenavigation=1&theme=dark
Current behavior
Using the datefnsv3 localization adapter (at least), the day of month shows with zero padding for days < 10 when the "d" specifier is used in the value of the
format
prop.Expected behavior
There should be no zero padding for days < 10.
Context
I don't want zero padding.
Your environment
npx @mui/envinfo
Search keywords: date-picker date-fns format
Search keywords:
The text was updated successfully, but these errors were encountered: