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