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 DMY with dot separator date format #3

Merged
merged 3 commits into from
Dec 27, 2023

Conversation

mikewzr
Copy link
Contributor

@mikewzr mikewzr commented Dec 17, 2023

Add date format with dot separator. This date format is used in the EU and especially in German speaking countries. In contrast to the existing date formats which are month first, this one is day first. Like this:

25.12.2012

in contrast to

12/25/2023

I changed the parsing that now dates separated with dot are interpreted as day first and the others (dash, slash) are interpreted as month first.

@devinvs
Copy link
Owner

devinvs commented Dec 27, 2023

Thanks for submitting this, this seems like a good change to me. There are some pretty obvious limitations around parsing other formats that aren't prevalent in the US, I wonder if the parser could query the system's locale to decide how to parse an ambiguous date such as "5/6/2023". But that's a problem for another day

@devinvs devinvs merged commit 8768fd6 into devinvs:main Dec 27, 2023
1 check failed
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

Successfully merging this pull request may close these issues.

2 participants