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 .