-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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 format #1461
Comments
You've probably solved this by now, but in case someone else has the same issue, there is an optional 'formatDate' prop on DatePicker which the date will be passed through on its way to the TextField. |
I still have not solved, the props are there but I would like to see a working example, it say you have to pass a function but not in what format. |
You need to pass a function that takes a Date and returns a String:
EDIT: fixed formatting |
So what does |
The documentation was greatly improved since this issue was opened. #3417 is also adding an example on how to do it. |
Hi every one, I am using material ui date-picker from material ui core. It shows january12th(for example) like this I want this format to dd/mm/yy. format. I set initially new Date(); . |
This is more a question than a issue, someone can show me a example of how can i change de dateformat to YYYY/MM/DD
I think that the demo page need this example to.
The text was updated successfully, but these errors were encountered: