original_docstring: Checks if passed string can be converted to date
docstring: Checks if passed string can be converted to date
docstring_tokens: Checks if passed string can be converted to date
code: def validate_date_string(date_string) -> bool:
      '''Checks if passed string can be converted to date'''
      try:
          datetime.datetime.strptime(date_string, '%Y-%m-%d')
          valid = True
      except ValueError:
          valid = False
      return valid
code_tokens: def validate_date_string ( date_string ) -> bool : try : datetime . datetime . strptime ( date_string , '%Y-%m-%d' ) valid = True except ValueError : valid = False return valid
short_docstring: Checks if passed string can be converted to date
short_docstring_tokens: Checks if passed string can be converted to date
comment: '''Checks if passed string can be converted to date'''