When using Using python 3.8.0 Example presented here https://docs.python.org/3/library/datetime.html#datetime.date.fromisoformat does not seem to work: >>> date.fromisoformat('20191204') Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: Invalid isoformat string: '20191204'