I tried convert 2018-08-22 11:13:00 (datetime64[ns]) to only 20180822 (object).
I have this code:
df_ICF_news['date'] = df_ICF_news['date'].apply(lambda x: pd.to_datetime(str(x), format='%Y%m%d'))
but don`t work:
ValueError: time data '2022-10-28 11:09:00' does not match format '%Y%m%d' (match)