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

Support for countries which use DD MM YYYY #269

Open
chrisco484 opened this issue Sep 18, 2019 · 5 comments
Open

Support for countries which use DD MM YYYY #269

chrisco484 opened this issue Sep 18, 2019 · 5 comments

Comments

@chrisco484
Copy link

Some countries don't use the USA layouts:

MM/DD/YYYY

but order the elements in least significant to most significant
i.e.
day then month then year.

And in reverse it goes:

YYYY MM DD

Does natty have a mode that allows switching to this type of Day/Month ordering?

@chrisco484
Copy link
Author

Sorry, I accidentally closed this - reopening...

@simonwibberley
Copy link

+1 for this - most of the world doesn't use the MMDDYY format - it's critical to be able to configure this to get the correct parse in many situations.

@chrisco484 chrisco484 changed the title Support for countries which us DD MM YYYY Support for countries which use DD MM YYYY Mar 19, 2020
@Anton-Astrouski
Copy link

+1

@DieterVDW
Copy link

+1 !

Natty really doesn't behave well for EU formatted dates.
For example "12/06/20" results in 6 DEC 2020, while it should be 12 JUNE 2020 .
"13/06/20" for example fails to parse at all, returning 13:00:00 for the current date.

@GingerNinja2962
Copy link

+1

I actually wanted to use this to format data from an API but the format is DD/MM/YYYY and natty sees it as MM/DD/YYYY and that just does not work for me.

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

5 participants