pandas convert series of datetime to date

df['date_column'] = pd.to_datetime(df['datetime_column']).dt.date

Here is what the above code is Doing:
1. We’re creating a new column called date_column.
2. We’re using the to_datetime function to convert the datetime_column to a datetime object.
3. We’re using the dt.date function to extract the date from the datetime object.
4. We’re assigning the result to the date_column.