Here is an example:
public MyDate() throws ParseException { SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy/MM/d\"); sdf.setLenient(false); St
After it successfully parsed the entire pattern string SimpleDateFormat stops evaluating the data it was given to parse.
SimpleDateFormat