How to convert string with any date format to %m/%d/%y in Python

I have a csv with with dates. The dates have inconsistent formatting and I want it all to change to mm/dd/yyyy upon importing. Is there a way to do it? I know about strptime but that requires a second argument for the format of the given date.

I would recommend strftime from datetime with this you can perform a format change without the given format.

Back to Top