# import the date class from datetime import date # function of date class today = date.today() # Converting the date to the string Str = date.isoformat(today) print("String Representation", Str) print(type(Str))