This is my code. # s=gn.search('energy digital transformation',helper=True,from_ =date1.strftime("%Y-%m-%d"), to_ =date2.strftime("%Y-%m-%d")) The following result is obtained. #Exception: Could not parse your date Why can't it recognize the date?