- fromisoformat
datetime fromisoformat
examples/datetime/datetime_fromisoformat.py
import datetime dt = datetime.datetime.fromisoformat('2000-01-01') print(dt) # 2000-01-01 00:00:00
import datetime dt = datetime.datetime.fromisoformat('2000-01-01') print(dt) # 2000-01-01 00:00:00