extracting date from a string in python,"date = datetime.strptime(match.group(), '%Y-%m-%d').date()"