material-ui-pickers
material-ui-pickers copied to clipboard
Date days are added with additional digit
Environment
| Tech | Version |
|---|---|
| material-ui-pickers | rc14 |
| material-ui | 3.0.1 |
| React | 16.4.2 |
| Browser | Chrome |
| Peer library | date-fns alpha.16 |
it also happens on the official docs example: https://material-ui-pickers.firebaseapp.com/guides/formats
Expected behavior
show the day properly
Actual behavior
days are added with 3rd digit.


@gairom ,
I have the same issue. I found out the issue is with the format.
The correct format is case sensitive format="dd/MM/yyyy"
make sure the dd is not DD.
You must update the formats strings for date fns v16
But this issue as far I understand — that on one of example format strings are not update.
Yep, D -> d fixed it, thanks!