parameters: (value)
return_statement: return value.strftime(DATETIME_FORMAT) if value else False
docstring: Convert a :class:`datetime` or :class:`date` object to a string.
  
          :param value: value to convert.
          :type value: datetime or date
          :return: a string representing ``value`` in the server's datetime format,
              if ``value`` is of type :class:`date`,
              the time portion will be midnight (00:00:00).
          :rtype: str
docstring_summary: Convert a :class:`datetime` or :class:`date` object to a string.
docstring_tokens: Convert a : class : datetime or : class : date object to a string .
function: def to_string(value):
          """Convert a :class:`datetime` or :class:`date` object to a string.
  
          :param value: value to convert.
          :type value: datetime or date
          :return: a string representing ``value`` in the server's datetime format,
              if ``value`` is of type :class:`date`,
              the time portion will be midnight (00:00:00).
          :rtype: str
          """
          return value.strftime(DATETIME_FORMAT) if value else False
function_tokens: def to_string ( value ) : return value . strftime ( DATETIME_FORMAT ) if value else False