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"
For example: 2022-03-30 to 30-Mar-22