How to convert user input date format to a different format on output in Python
How to convert user input date format to a different format on output in Python Question: I have a code where the date is an input converted to a date: InvDateStr = input("Enter the invoice date (YYYY-MM-DD): ") InvDate = datetime.datetime.strptime(InvDateStr, "%Y-%m-%d") I would like to later output this date in the format of "DD-Mon-YY" …