public static Date createDate ( final String dateStr ) { if ( dateStr == null ) { return createCalendar ( null ) . getTime ( ) ; } final Calendar cal = getCal ( dateStr ) ; return cal != null ? cal . getTime ( ) : null ; }
Creates a Date object given a string representation of it