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

day and month coming out swapped #16

Open
pavasgdb opened this issue Jun 27, 2020 · 2 comments
Open

day and month coming out swapped #16

pavasgdb opened this issue Jun 27, 2020 · 2 comments

Comments

@pavasgdb
Copy link

For the string "5/1/2016 ", the results are "date": "2016-05-01", the day and month are shown opposite. Kindly tell if some parameter can be used to manually handle this. Or kindly provide a fix for it.

@DanielJDufour
Copy link
Owner

Hello, excellent find. Thank you for bringing this to our attention. Unfortunately, there's no easy fix for this, but it's something that could be written. Would you be interested in writing a Pull Request? What sort of parameter would you like to see?

Perhaps:

text = "5/1/2016"
date = extract_date(text, country="India")
# returns "2016-01-05"

date = extract_date(text, country="USA")
# returns "2016-05-01"

Open to your thoughts

@pavasgdb
Copy link
Author

Yeah, this seems to be a good parameter. I would be interested in writing a pull request. Just I am a little busy with my internship, your assistance for the same would be very helpful.

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