python convert datetime format to date code example
Example: date object into date format python
df['date_column'] = pd.to_datetime(df['date_column'],format='%Y%m%d')
df['date_column'] = pd.to_datetime(df['date_column'],format='%Y%m%d')