import datetime # Create a date object for January 1, 2022 d = datetime.date(2022, 1, 1) # Print the date object print(d)
2022-01-01