Hello;
I was having a problem understanding how to collect a date dataType as 1111-11-11 from a textFiels)
and set a variable that accepts ex:public Date dob;
Is there a way to get a string from an array element and parse it to conform to the Date data type?
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException
at java.util.Date.parse(Date.java:598)
atJava.util.Date<init>(Date.java:255)
at view.forms.......
if(i==6){
AccessAllTables.getAdminBean().setDob(new java.util.Date(txtFieldArray[i].getText()));//Input=1111-11-11
}
if(i==7){
AccessAllTables.getAdminBean().setStartDate(new java.util.Date(txtFieldArray[i].getText()));//Input=1111-11-11
}
if(i==8){
AccessAllTables.getAdminBean().setEndDate(new java.util.Date(txtFieldArray[i].getText()));//Input=1111-11-11
}