code: @Override
      public String getAsText() {
          DateMidnight value = (DateMidnight) getValue();
          return (value != null ? this.dateFormat.print(value) : "");
      }
docs: Format the Date as String, using the specified DateFormat.