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

Feature request: add a way to provide a placeholder of the localized format #2111

Open
tgreen7 opened this issue Nov 3, 2022 · 1 comment

Comments

@tgreen7
Copy link

tgreen7 commented Nov 3, 2022

I am using the localized format plugin to display dates using L which in English Locale is MM/DD/YYYY. Is there a way to get that placeholder to display in the datepicker? For example I would like that to switch to DD/MM/YYYY if someone is using our app in Denmark.

Not sure if this is a thing already or if someone could point me in the right direction.

In moment it looks like they have something to solve this https://stackoverflow.com/questions/37036929/how-to-get-date-format-from-locale

@BePo65
Copy link
Contributor

BePo65 commented Nov 28, 2022

Using the method longDateFormat('L') from the plugin 'LocaleData' you can get the current format. Datails can be found in the documentation for LocaleData and the section Customize of the documentation.

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

2 participants