code: public static DateTimeFormatter getDateTimeFormatter()
          throws EFapsException
      {
          final String formatStr = Configuration.getAttribute(Configuration.ConfigAttribute.FORMAT_DATETIME);
          final DateTimeFormatter ret;
          if (formatStr.matches("^[S,M,L,F,-]{2}$")) {
              ret = DateTimeFormat.forStyle(formatStr);
          } else {
              ret = DateTimeFormat.forPattern(formatStr);
          }
          return ret.withLocale(Context.getThreadContext().getLocale());
      }
docs: Gets the date time formatter.
  
  @return the date time formatter
  @throws EFapsException the e faps exception