demo_datetime_strftime_w.py:
x = datetime.datetime.now() print(x.strftime("%w"))
C:\Users\My Name>python demo_datetime_strftime_w.py