python script that allows a user to enter a date with the format YYYY-MM-DD code example
Example: python input date
date = input("Enter date in YYYY-MM-DD format")
year, month, day = map(int, date.split('-'))
date = datetime.date(year, month, day)
date = input("Enter date in YYYY-MM-DD format")
year, month, day = map(int, date.split('-'))
date = datetime.date(year, month, day)