Convert datetime object into string

from datetime import datetime

dt = datetime(2020, 9, 26, 14, 40, 54)

isoFormatEU = "%m-%d-%Y %H:%M:%S"

dateStr = datetime.strftime(dt, isoFormatEU)

print("European date string " + dateStr)
Output
European date string 09-26-2020 14:40:54