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