private Date dateOnlyFormat ( String text ) throws java . text . ParseException { text = ( text == null ) ? "" : text . trim ( ) ; dateOnlyFormat ( ) ; return dateOnlyFormat . parse ( text ) ; }
Parse text in the format yyyy - MM - dd