datetime.weekday python code example
Example 1: python timedelta
from datetime import timedelta
tomorrow = datetime.today() + timedelta(days = 1)
Example 2: python datetime weekday
from datetime import datetime
date_str='10-12-20'
datetime_object = datetime.strptime(date_str, '%m-%d-%y')
datetime_object.weekday()