akoumjian / datefinder

Find dates inside text using Python and get back datetime objects
http://datefinder.readthedocs.org/en/latest/
MIT License
635 stars 167 forks source link

can we support dayfirst in find_dates #77

Open bh-nil opened 6 years ago

bh-nil commented 6 years ago

In my case dates are starting with day. But Datefinder uses default parserInfo which is month first. i.e. in case of ambiguity month is taken first. ex. 01-02-2018 is 2nd Jan instead of 1st Feb Can additional optional args be added to take parser_info object?

should traverse to as_dt = parser.parse(date_string, default=self.base_date, **_parser_info=None_**)