python str(date.today()) code example Example: today date python today = datetime.today().strftime("%Y-%m-%d %H:%M:%S")