I have a dataframe (df) that has a date column (column name : sale_date) that stores data in the below format
dd/mm/yy hh:mm:ss
I am trying to convert it to yyyy-mm-dd hh:mm:ss. Tried with the below but however it still does not convert it to the required format.
df['sale_date'] = pd.to_datetime(df['sale_date'])
Could anyone assist in converting the format of this date column. Thanks