datetime.datetime.strptime("2013-1-25", '%Y-%m-%d').strftime('%m/%d/%y')
import datetime x = datetime.datetime(2018, 9, 15) print(x.strftime("%b %d %Y %H:%M:%S"))
>>> datetime.today().strftime('%Y-%m-%d-%H:%M:%S') '2021-01-26-16:50:03'