public static Date stringTodate ( String dateString , String format ) throws ParseException { final DateFormat dateFormat = new SimpleDateFormat ( format , Locale . US ) ; return dateFormat . parse ( dateString ) ; }
Convert string to date .