src/main/java/org/efaps/ui/wicket/util/DateUtil.java
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());
    }
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());
    }
Gets the date time formatter.

@return the date time formatter
@throws EFapsException the e faps exception