public static Date getDateFromConciseStr ( String str ) { Date d = null ; if ( str == null || str . isEmpty ( ) ) return null ; try { SimpleDateFormat sdf = new SimpleDateFormat ( "yyyyMMddHHmmssSSSZ" ) ; d = sdf . parse ( str ) ; } catch ( Exception ex ) { logger . error ( ex + "Exception while converting string to date : " + str ) ; } return d ; }
20130512 Converts the sdsm string generated above to Date format .