I'm trying to compare a given date with two user specified dates (earliest x and latest y) to see if the date is between x and y as supplied by the user.
I seem to be having a problem parsing a string into a date format to compare with the user supplied variables (presumably I'd get the same problem with the user supplied variables, but we don't get that far).
I'm taking the 'control' date, and the dates supplied by the user from strings using Date controlDate = SimpleDateFormat.parse(suppliedDate);
I've tried specifying the date format, ie mm/dd/yyyy but I get an "unparseable date" exception each time.