Skip to content
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

Locale can config DatePicker default format #23902

Closed
1 task
zombieJ opened this issue May 6, 2020 · 7 comments
Closed
1 task

Locale can config DatePicker default format #23902

zombieJ opened this issue May 6, 2020 · 7 comments

Comments

@zombieJ
Copy link
Member

zombieJ commented May 6, 2020

  • 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} />
@afc163
Copy link
Member

afc163 commented Oct 1, 2020

#14656
#26977

@leedorian
Copy link

Same issue, has it been fixed?

@LukaszGrela
Copy link

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?

@github-actions github-actions bot removed the Inactive label Apr 26, 2021
@LukaszGrela
Copy link

Any update on this issue?

@Quixit
Copy link

Quixit commented May 21, 2021

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

@lhnrd
Copy link

lhnrd commented Oct 7, 2021

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

@zombieJ
Copy link
Member Author

zombieJ commented Feb 20, 2024

Picker component has been refactor in 5.14.0, and this issue is discussed and handled with react-component/picker#691 which will be marked as closed.

Please feel free to create new issue if you have any further question :)

Picker 组件于 5.14.0 版本进行了重构,此问题已被 react-component/picker#691 中进行讨论与处理。

如果有任何问题,欢迎随时创建新的 issue :)

@zombieJ zombieJ closed this as completed Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants