demo_datetime_strftime_w2.py:
x = datetime.datetime(2018, 5, 31) print(x.strftime("%W"))
C:\Users\My Name>python demo_datetime_strftime_w2.py
22