public final static SimpleDateFormat[] DATE_FORMATS = new SimpleDateFormat[]{
new SimpleDateFormat("ddMMyy"),
new SimpleDateFormat("ddMM/yy"),
new SimpleDateFormat("dd/MMyy"),
new SimpleDateFormat("dd/MM/yy"),
new SimpleDateFormat("ddMMyyyy"),
new SimpleDateFormat("ddMM/yyyy"),
new SimpleDateFormat("dd/MMyyyy"),
new SimpleDateFormat("dd/MM/yyyy")
};
for (SimpleDateFormat df : DATE_FORMATS) {
df.setLenient(false);
try {
date = df.parse(dateText);
break;
} catch (ParseException ex) {
}
}