Try to replace this line:
patientPage.setPatientBOD("2001-10-15");
By removing the "-" symbol:
patientPage.setPatientBOD("20011015");