Run »
import datetime x = datetime.datetime(2018, 5, 31) print(x.strftime("%W"))
22