protected final String parseAndFormatDate ( final String pversionDate ) { Date date ; if ( StringUtils . isEmpty ( pversionDate ) ) { date = new Date ( ) ; } else { try { date = versionDateFormat . parse ( pversionDate ) ; } catch ( final IllegalArgumentException e ) { date = new Date ( ) ; } } return dateFormatDisplay . format ( date ) ; }
parse and format a date string .