code: func (t *Date) UnmarshalJSON(b []byte) error {
  	ts, err := time.Parse(`"`+time.RFC3339+`"`, string(b))
  	if err != nil {
  		return err
  	}
  
  	*t = Date(ts)
  	return nil
  }
docs: //UnmarshalJSON override unmarshalJSON