I want to be able to convert string to date format in python. But some of the day and month are assigned to 00.
date = ['00-00-2001', '10-01-2014']
when I tried :
datetime.strptime(date[1], '%d-%m-%Y'), of course it works fine,
but doing datetime.strptime(date[0], '%d-%m-%Y'), I get the following error.
time data '00-00-2001' does not match format '%d-%m-%Y'