I am trying to set date format to a pandas dataframe column.
test['Date']=pd.to_datetime(test['Date'], format='%d-%m-%Y')
However, I get this error:
ValueError: time data '13/04/2021 15:21' does not match format '%d-%m
m-%Y' (match)
Why I cannot format this date column to day-month-year format?