public static java.util.Date toDate(String dateTime) {
		// dateTime must have one space between the date and time...
		String date = dateTime.substring(0, dateTime.indexOf(" "));
		String time = dateTime.substring(dateTime.indexOf(" ") + 1);

		return toDate(date, time);
	}
public static java . util . Date toDate ( String dateTime ) { String date = dateTime . substring ( 0 , dateTime . indexOf ( " " ) ) ; String time = dateTime . substring ( dateTime . indexOf ( " " ) + 1 ) ; return toDate ( date , time ) ; }
Converts a date and time String into a Date

@param dateTime
A combined data and time string in the format
"MM/DD/YYYY HH:MM:SS", the seconds are optional
@return The corresponding Date