What is the replacement for dateutil.parser in python3?

vy32 picture vy32 · May 12, 2011 · Viewed 69.9k times · Source

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?

Answer

Lennart Regebro picture Lennart Regebro · May 12, 2011

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.