public static boolean isISODateTime ( final String val ) throws BadDateException { try { if ( val . length ( ) != 15 ) { return false ; } fromISODateTime ( val ) ; return true ; } catch ( Throwable t ) { return false ; } }
Check Date is yyyyMMddThhmmdd