Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

date fromisoformat (only date, no time)

  • date
  • fromisoformat
import datetime

date = datetime.date.fromisoformat('2000-01-01')
print(date)   # 2000-01-01