1import datetime
2
3currentDT = datetime.datetime.now()
4
5print (currentDT.strftime("%Y-%m-%d %H:%M:%S"))
6print (currentDT.strftime("%Y/%m/%d"))
7print (currentDT.strftime("%H:%M:%S"))
8print (currentDT.strftime("%I:%M:%S %p"))
9print (currentDT.strftime("%a, %b %d, %Y"))
10