code: def _converter(self, value):
          
          if not isinstance(value, datetime.date):
              raise TypeError('{0} is not valid date'.format(value))
          return value
docs: Convert raw input value of the field.