Is there a Python module to parse month or day references in a given string?
You could try using dateutil.parser
, e.g.:
>>> from dateutil import parser
>>> parser.parse("There's a date 09-21 in here", fuzzy=True)
datetime.datetime(2011, 9, 21, 0, 0)
... with the fuzzy=True
option. The documentation is here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With