Here is the validation code for Date of format MM/dd/yyyy.
SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy");
formatter.setLenient(false);
Calendar cal = Calendar.getInstance();
Date myDate = formatter.parse("01/02/2014888");
cal.setTime(myDate);
When the date string is 01/02/2014888, it passes the validation. How can I make the validation correctly?