I am reading dates from csv to python in the form of 2017-01-04. I am trying to process dates like
from datetime import datetime
day1 = datetime.strptime(date1, date_format)
where I use date_format = "%y-%m-%d"
However, when I process the data, I get the error:
time data '2017-01-04' does not match format '%y-%m-%d'
What should it be?
"%Y-%m-%d"upper-caseYfor 4 digit years, see the docs