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