ant-design Locale can config DatePicker default format

hfwmuf9z  于 2022-12-31  发布在  其他
关注(0)|答案(6)|浏览(134)
  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

Can config default format globally.

What does the proposed API look like?

<ConfigProvider locale={localeWithFormat} />
gcmastyq

gcmastyq2#

Same issue, has it been fixed?

xt0899hw

xt0899hw3#

I can see the locale object on the DatePicker with correct format dateFormat: "D/M/YYYY" , but the selected date is formatted with some other format (Default?) YYYY-M-D . Are you planing on fixing this bug?

uinbv5nw

uinbv5nw4#

Any update on this issue?

tmb3ates

tmb3ates5#

I'm having this issue too, the config provider doesn't affect date/time pickers, they always display the chinese date format YYYY-MM-DD instead of anything else. Like US MM/DD/YYYY

b1zrtrql

b1zrtrql6#

Just FYI if I use format="L" it solves my problem the DatePicker gets the format from the locale.

相关问题