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