I just need a super-simple picker where someone can type in the date and/or pick it from a calendar. The material-ui picker meets my needs for that.
However, it shows the date in MM/DD/YYYY (Even though it's internally stored YYYY-MM-DD if you spit out the value of the TextField)
You can see this on the demo here: https://material-ui.com/demos/pickers/
I'd like to have the displayed date be YYYY/MM/DD (or YYYY-MM-DD).
I've tried building a formatDate function, as outlined in many other questions on this and some older docs... but that results in me getting a React does not recognize the
formatDateprop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase
formatdateinstead.
error.
This also came up in git discussions and the topic was closed without any real resolution: https://github.com/mui-org/material-ui/issues/10251
Surely there is a way to do this... help?