def _str_to_datetime(self, str_value):
try:<EOL><INDENT>ldt = [int(f) for f in str_value.split('<STR_LIT:->')]<EOL>dt = datetime.datetime(*ldt)<EOL><DEDENT>except (ValueError, TypeError):<EOL><INDENT>return None<EOL><DEDENT>return dt<EOL>
Parses a `YYYY-MM-DD` string into a datetime object.