- date
- fromisoformat
date fromisoformat (only date, no time)
examples/datetime/date_fromisoformat.py
import datetime date = datetime.date.fromisoformat('2000-01-01') print(date) # 2000-01-01
import datetime date = datetime.date.fromisoformat('2000-01-01') print(date) # 2000-01-01