Python’s strftime directives
import datetime today = datetime.date.today() print(today.strftime("%U"))