code: func (d *Date) Scan(raw interface{}) error {
  	switch v := raw.(type) {
  	case []byte:
  		return d.UnmarshalText(v)
  	case string:
  		return d.UnmarshalText([]byte(v))
  	case time.Time:
  		*d = Date(v)
  		return nil
  	case nil:
  		*d = Date{}
  		return nil
  	default:
  		return fmt.Errorf("cannot sql.Scan() strfmt.Date from: %#v", v)
  	}
  }
docs: // Scan scans a Date value from database driver type.