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

Add support for date localization #248

Open
rain2o opened this issue Mar 30, 2024 · 0 comments
Open

Add support for date localization #248

rain2o opened this issue Mar 30, 2024 · 0 comments

Comments

@rain2o
Copy link

rain2o commented Mar 30, 2024

While trying to use this date picker, I've found it rather challenging to offer localized date formats, as I do everywhere else in my app. I believe the easiest way to accomplish this would be to add the LocalizedFormat plugin for dayjs.

An alternative option would be to allow a format function in lieu of a format string. So I could pass something like formatter={(value) => new Date(value).toLocaleDateString()}. This would offer more robust options in the long-term, but of course would require a bit more effort to introduce and maintain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant