private boolean checkDateTimeFormat ( String pstrDtFmt ) { boolean blnRet = false ; DateFormat objFmt = null ; try { objFmt = new SimpleDateFormat ( pstrDtFmt ) ; blnRet = true ; } catch ( NullPointerException NPExIgnore ) { } catch ( IllegalArgumentException IAExIgnore ) { } finally { if ( objFmt != null ) objFmt = null ; } return blnRet ; }
Helper function to check the date time formats .