code: public void setDateFormatPattern(String dateFormatPattern) {
          try {
              simpleDateFormat = new SimpleDateFormat(dateFormatPattern);
          } catch (Exception e) {
              throw new IllegalArgumentException("Incorrect date pattern. " +
                      "Ensure to use formats provided in https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html", e);
          }
      }
docs: Property for specifying date format.
  See <a href="https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html">SimpleDateFormat</a> for details.
  
  @param dateFormatPattern