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