parse string `datestr` into a datetime object using format pattern '%y-%m-%d',"dateobj = datetime.datetime.strptime(datestr, '%Y-%m-%d').date()"