dateparser icon indicating copy to clipboard operation
dateparser copied to clipboard

Dateparser fails to detect dates in format : DD.MM.YYYY (German, or any permutation) and YYYYMMDD (any variation)

Open KameniAlexNea opened this issue 2 years ago • 0 comments

Hi,

In this notebook, I found that dateparser always fails to detect German Format date : DD.MM.YYYY which can simply handle by replacing '.' with '/' before parsing.

Not sure that this is the best way to do, but important improvement on date accuracy as shown on the dataset 400 dates in different formats

from dateparser import search

search.search_dates("23.03.01")
search.search_dates("23/03/01")

search.search_dates("2023.03.01")
search.search_dates("2023/03/01")

search.search_dates("20230301")

KameniAlexNea avatar Feb 19 '23 04:02 KameniAlexNea