def json_date_to_datetime(json_date_string_value):
if "<STR_LIT:T>" in json_date_string_value:<EOL><INDENT>if "<STR_LIT:.>" in json_date_string_value:<EOL><INDENT>format_string = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>format_string = "<STR_LIT>"<EOL><DEDENT>if json_date_string_value.endswith("<STR_LIT>"):<EOL><INDENT>format_string += "<STR_LIT>"<EOL><DEDENT><DEDENT>else:<EOL><INDENT>format_string = "<STR_LIT>"<EOL><DEDENT>return datetime.strptime(<EOL>json_date_string_value,<EOL>format_string<EOL>)<EOL>
converts json date string to date object