my date format come in format 11122020 (ddmmyyyy) in a pandas column.
I use
datapdf["wholetime"]=pd.to_datetime(datapdf["wholetime"],format='%d%m%Y)
to convert to time and do processing on the time.
recently my code failed for date 3122020 as
ValueError: day is out of range for month
python is interpreting as 31 2 2020 instead of 3 12 2020 which is causing the error. Any one have solution for this?