original_docstring: 
      Convert raw date field into a value interpretable by the dataserver.
  
      If manual_import is set to True, returns in format recognized by MongoDB.
      
docstring: Convert raw date field into a value interpretable by the dataserver.
  If manual_import is set to True, returns in format recognized by MongoDB.
docstring_tokens: Convert raw date field into a value interpretable by the dataserver . If manual_import is set to True returns in format recognized by MongoDB .
code: def convert_date(raw_date, manual_import=False):
      """
      Convert raw date field into a value interpretable by the dataserver.
  
      If manual_import is set to True, returns in format recognized by MongoDB.
      """
      try:
          date = datetime.strptime(raw_date, "%Y/%m/%d")
          return (
              {"$date": date.strftime("%Y-%m-%dT00:00:00Z")}
              if manual_import else date.strftime("%m/%d/%YZ")
          )
      except:
          return None
code_tokens: def convert_date ( raw_date , manual_import = False ) : try : date = datetime . strptime ( raw_date , "%Y/%m/%d" ) return ( { "$date" : date . strftime ( "%Y-%m-%dT00:00:00Z" ) } if manual_import else date . strftime ( "%m/%d/%YZ" ) ) except : return None
short_docstring: Convert raw date field into a value interpretable by the dataserver.
short_docstring_tokens: Convert raw date field into a value interpretable by the dataserver .
comment: """
      Convert raw date field into a value interpretable by the dataserver.
  
      If manual_import is set to True, returns in format recognized by MongoDB.
      """