                      parsed = datetime.datetime.strptime(value, format)
                  except (ValueError, TypeError):
                      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):
 
</s> remove                     return self.enforce_timezone(parsed)
 </s> add                     return parsed.date() </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) </s> remove                         return parsed
 </s> add                         return self.enforce_timezone(parsed) </s> remove                         return self.enforce_timezone(parsed)
 </s> add                         return parsed
                    return self.enforce_timezone(parsed)
                      parsed = datetime.datetime.strptime(value, format)
                  except (ValueError, TypeError):
                      pass
                  else:
                    return self.enforce_timezone(parsed)
  
          humanized_format = humanize_datetime.date_formats(self.input_formats)
          self.fail('invalid', format=humanized_format)
  
      def to_representation(self, value):
keep keep keep keep replace keep keep keep keep keep
 Refuse to downcast from datetime to date or time 
rest_framework/fields.py