Search code examples
python-3.xpython-dateutil

What is the replacement for dateutil.parser in python3?


Python 2.x has a great function called dateutil.parser which turns an ISO8601 formatted date into a python datetime value. It's not present in Python 3. What is the replacement?


Solution

  • dateutil is a third party module. It has recently been ported to Python 3 with dateutil 2.0, and the parser functions was ported as well.

    So the replacement is dateutil.parser. You just forgot to install it.