          if value is None or self.format is None:
              return value
  
          if self.format.lower() == ISO_8601:
              ret = value.isoformat()
              if ret.endswith('+00:00'):
                  ret = ret[:-6] + 'Z'
              return ret
          return value.strftime(self.format)
  
  
  class TimeField(Field):
      default_error_messages = {
 
</s> remove             return value.isoformat()
 </s> add             ret = value.isoformat()
            if ret.endswith('+00:00'):
                ret = ret[:-6] + 'Z'
            return ret </s> remove         if isinstance(value, datetime.datetime):
            value = value.date()

 </s> add  </s> remove class DateTimeField(Field):
 </s> add class DateField(Field): </s> remove         humanized_format = humanize_datetime.date_formats(self.input_formats)
 </s> add         humanized_format = humanize_datetime.datetime_formats(self.input_formats) </s> remove         humanized_format = humanize_datetime.datetime_formats(self.input_formats)
 </s> add         humanized_format = humanize_datetime.date_formats(self.input_formats)
            return value.isoformat()
          if value is None or self.format is None:
              return value
  
          if self.format.lower() == ISO_8601:
            return value.isoformat()
            return value.isoformat()
            return value.isoformat()
            return value.isoformat()
          return value.strftime(self.format)
  
  
  class TimeField(Field):
      default_error_messages = {
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Refuse to downcast from datetime to date or time 
rest_framework/fields.py