                      pass
                  else:
                      return parsed.date()
  
          humanized_format = humanize_datetime.date_formats(self.input_formats)
          self.fail('invalid', format=humanized_format)
  
      def to_representation(self, value):
          if value is None or self.format is None:
              return value
 
</s> remove         humanized_format = humanize_datetime.datetime_formats(self.input_formats)
 </s> add         humanized_format = humanize_datetime.date_formats(self.input_formats) </s> remove                     return parsed.date()
 </s> add                     return self.enforce_timezone(parsed) </s> remove                     return self.enforce_timezone(parsed)
 </s> add                     return parsed.date() </s> remove         if isinstance(value, datetime.datetime):
            value = value.date()

 </s> add  </s> remove             ret = value.isoformat()
            if ret.endswith('+00:00'):
                ret = ret[:-6] + 'Z'
            return ret
 </s> add             return value.isoformat()
        humanized_format = humanize_datetime.datetime_formats(self.input_formats)
                      pass
                  else:
                      return parsed.date()
  
        humanized_format = humanize_datetime.datetime_formats(self.input_formats)
          self.fail('invalid', format=humanized_format)
  
      def to_representation(self, value):
          if value is None or self.format is None:
              return value
keep keep keep keep replace keep keep keep keep keep
 Refuse to downcast from datetime to date or time 
rest_framework/fields.py