How to set format
in DatePicker globally
#5222
Unanswered
albertcito
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My goal is to apply the same format by default for all DatePickers like
<DatePicker />
and it should display the date in this format M/D/YYYY.I reviewed ConfigProvider and en_US format for DatePicker it is M/D/YYYY like I want. But if you see the ConfigProvider page, the example of DatePicker return a format YYYY-MM-DD, not the format defined in
en_US
file (looks like it's not working). How can I apply the same custom format for all theDatePicker
without pass the value in each one of them?Beta Was this translation helpful? Give feedback.
All reactions