implement a program that prompts the user for a date, anno Domini, in month-day-year order, formatted like 9/8/1636 or September 8, 1636 , wherein the month in the latter might be any of the values in the list below:
Then output that same date in YYYY-MM-DD format. If the user’s input is not a valid date in either format, prompt the user again. Assume that every month has no more than 31 days; no need to validate whether a month has
whether a month has 28, 29, 30, or 31 days
program should accept only below formats, yyy-mm-dd
if i enter 9/8/1636 or September 8, 1636, If i gave this format october/9/1701 it should print meg which i have inputted first, here I wrote this program handling the extension.
Currently, if the input has / in it, you are splitting it into month, day, year. If you want month to be a number, then you should check to make sure it is or else continue which will cause code ask for input again.
You only added an else statement. Read my previous replies. I told you what logic needs to be incorporated to accomplish the task. The logic will take place inside the code block below the elif statement.