code: public void addDateField(String name, Date date)
      {
          if (_state!=__MSG_EDITABLE)
              return;
          _header.addDateField(name,date);
      }
docs: Adds the value of a date field.
  Header or Trailer fields are set depending on message state.
  @param name the field name
  @param date the field date value