format

PythonF

Date Format

The program must accept a date as the input. The program must print the date in the mentioned format as shown in the Example Input/Output…