datetime python

60

how to set datetime format in python -

import datetime

x = datetime.datetime(2018, 9, 15)

print(x.strftime("%b %d %Y %H:%M:%S"))

Comments

Submit
0 Comments