Run
import datetime #get current date and time x = datetime.datetime.now() #convert date and time to string dateTimeStr = str(x) #just the date print(dateTimeStr[:10])
Output