print (now.strftime("%Y-%m-%d %H:%M:%S")) code example Example: python print datetime import datetime print("Now:", datetime.datetime.now())