posted 17 years ago
//attribute of type string.It gives me a number format exception
Date date=null;
try
{
SimpleDateFormat df=new SimpleDateFormat("MM/dd/yyyy");
date=df.parse(attribute);
if(attribute==null||!(date instanceof Date))
{
System.out.println("Reject the record");
break;
}
else
BOBroadbandAdviceNoteDataObj.setAdv_note_date(new Date(attribute));