def try_convert_to_date(self, word):
for frm in self.search_date_formats:<EOL><INDENT>try:<EOL><INDENT>return datetime.datetime.strptime(word, frm).date()<EOL><DEDENT>except ValueError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>return None<EOL>
Tries to convert word to date(datetime) using search_date_formats
Return None if word fits no one format