In this task, you are given a date in a particular format and you need to convert to another format. If given format is "dd/mm/yyyy" then convert to "mm/dd/yyyy". If given format is "mm/dd/yyyy" then convert to "dd/mm/yyyy".
--------
Question: 12/03/1795, input_format=mm/dd/yyyy

Answer: 03/12/1795


Question: 09/03/1616, input_format=dd/mm/yyyy

Answer: 03/09/1616


Question: 10/17/1714, input_format=mm/dd/yyyy

Answer:
17/10/1714