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

different date output format #2

Closed
louis123562 opened this issue Mar 4, 2021 · 2 comments
Closed

different date output format #2

louis123562 opened this issue Mar 4, 2021 · 2 comments

Comments

@louis123562
Copy link

louis123562 commented Mar 4, 2021

hey, i like your datepicker much.

Is it possible to accept date formats like 'DD.MM.YYYY' / 'DD.MMM.YYYY'?

I would like to use your datepicker on a german website, but all i can get is 'DD-MM-YYYY'.

Thanks in advance, Louis

#edit

^(?:(d{1,4}|m{1,4}|y{4}|y{2})?\b(?:(?:,\s)|[-.\s/]{1})?(d{1,4}|m{1,4}|y{4}|y{2})?\b(?:(?:,\s)|[.-\s/]{1})?(d{1,4}|m{1,4}|y{4}|y{2})\b(?:(?:,\s)|[.-\s/]{1})?(d{1,4}|m{1,4}|y{2}|y{4})?\b)$

this should be the correct Regex for it, allows both - and .

@mikecoj
Copy link
Owner

mikecoj commented Mar 5, 2021

Hey @louis123562, the regex was updated.
Thank you!

@louis123562
Copy link
Author

Thank you, we really enjoy this picker!!

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