use builtin datetime.strptime to convert string to date