Value error in using add_datepart

I use another data set to practice, and in “lesson1-rf” jupyter notebook, I had a problem in using add_datepart function. The error is “ValueError: month must be in 1…12”. It seems some dates are in the format like 20000002, the value of month is 0. How should I fix it? Would you help me? Thank you very much.