public Date parseDateTime ( String str ) throws java . text . ParseException { if ( str == null ) { return null ; } return DateFormat . getDateInstance ( ) . parse ( str ) ; }
Produce a date from a string using standard DateFormat parsing .