demo_datetime_strftime_x.py:
x = datetime.datetime.now() print(x.strftime("%x"))
➜ begtut>python demo_datetime_strftime_x.py