def date_convert(date_to_convert):
return dt.datetime.strptime(date_to_convert, '%a %b %d %H:%M:%S %Z %Y').strftime('%m/%d/%Y')
data['Publish Time'].apply(date_convert)
when running this it says
"" ValueError: time data 'Wed Sep 07 10:35:00 IST 2022' does not match format '%a %b %d %H:%M:%S %Z %Y' ""