Source Code:
(back to article)
from datetime import date date_string = "2022-11-20" date_object = date.fromisoformat(date_string) day_of_week = date_object.weekday() print(day_of_week)
Result:
Report an issue