code: @Override
      public void setFormat(final String format) {
          this.format = format;
  
          // Get the old value
          final Date oldValue = getValue();
  
          // Make the new DateTimeFormat
          setDateTimeFormat(format);
  
          if (oldValue != null) {
              setValue(oldValue);
          }
      }
docs: {@inheritDoc}