I'm following the following guide on how to convert a string into a date object in python but I came across an error that I don't quite understand.
I'm trying to do the following:
buildDateArray.append(dt.strptime(date,"%y-%b-%d %H:%M:%S"))
But I get the bellow error:
buildDateArray.append(dt.strptime(date,"%y-%b-%d %H:%M:%S"))
File "/usr/lib64/python2.6/_strptime.py", line 325, in _strptime
(data_string, format))
ValueError: time data '2014-11-17 00:00:00' does not match format '%y-%b-%d %H:%M:%S'
I don't understand why '2014-11-17 00:00:00' does not match format '%y-%b-%d %H:%M:%S'
Can you see what the error is?