scrapinghub / dateparser

python parser for human readable dates
BSD 3-Clause "New" or "Revised" License
2.57k stars 465 forks source link

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

Open KameniAlexNea opened 1 year ago

KameniAlexNea commented 1 year ago

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")