pandas convert datetime to date format code example
Example 1: apply format to pandas datetime column
formatted_df = df["Date"].dt.strftime("%m/%d/%y")
Example 2: convert series to datetime
pd.to_datetime(df['your_time_column'])
formatted_df = df["Date"].dt.strftime("%m/%d/%y")
pd.to_datetime(df['your_time_column'])