how to get day of week in python code example
Example 1: python get day name
import datetime
now = datetime.datetime.now()
print(now.strftime("%A"))
Example 2: get weekday from date python
# int value range: 0-6, monday-sunday
weekday = datetime.weekday()