pandas to date time day code example Example: convert date time to date pandas df['date_column'] = pd.to_datetime(df['datetime_column']).dt.date