date format TO code example Example: Convert to date format df[Date] = pd.to_datetime(df[Date], format="%m%d%Y %H:%M:%S")