We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is there a way to specify particular date format (eg dd-mm-yyyy) The date format in the text given is dd-mm-yyyy, but dates are extracted incorrectly
Ex: datefinder.find_dates('12.02.1980 ') Expected Output: 12.02.1980
Actual output: 02.12.1980
Also, what is the purpose of base_date argument ?
The text was updated successfully, but these errors were encountered:
If you know your dates are day first, pass the argument first="day" to the method.
first="day"
datefinder.find_dates('12.02.1980', first='day')
https://github.com/akoumjian/datefinder/blob/master/datefinder/__init__.py#L305
Sorry, something went wrong.
Hi @akoumjian , I tried passing the argument but it shows error :
File "date_test.py", line 2, in dates = datefinder.find_dates('12.02.2018',first="day") TypeError: find_dates() got an unexpected keyword argument 'first'
Hi @akoumjian , I tried passing the argument but it shows error : File "date_test.py", line 2, in dates = datefinder.find_dates('12.02.2018',first="day") TypeError: find_dates() got an unexpected keyword argument 'first'
I also received the same error :(
No branches or pull requests
Is there a way to specify particular date format (eg dd-mm-yyyy)
The date format in the text given is dd-mm-yyyy, but dates are extracted incorrectly
Ex: datefinder.find_dates('12.02.1980 ')
Expected Output:
12.02.1980
Actual output:
02.12.1980
Also, what is the purpose of base_date argument ?
The text was updated successfully, but these errors were encountered: