I would like to change the date from dd/mm/yyyy
to MMM dd/yy
.
ie 15/04/2021
to APR 15/21
My Date
column format is object
I am doing this:
df['Date'] = pd.to_datetime(df['Date'], format='%MMM %DD/%YY')
but I am getting ValueError: time data '15/04/2021' does not match format '%MMM %dd/%yy' (match)
Any help would be appreciated.