SimpleDateFormat Formater = new SimpleDateFormat ();
Formater.setlenient (FALSE);
Formater.Parse (STR);
Java can be prevented from converting the illegal date. For example: 20050344 It was originally illegal, but Parse entered the 20050413, so SETLENIENT (FALSE) can prevent this conversion.