We recommend familiarising yourself with how to ask a question on this forum. Specifically, you are more likely to get useful help, if you provide a helpful title and description:
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.
i gave else continue but it didn’t worked. if i gave small letter, Like :may/1/1701
it worked correctly, But if i gave May/1/1701 it didn’t worked out.