How to enter date in a cell which already has a userdefined Date format in Excel ..
Have tried the following code.but gives Error ...
Date date = new
SimpleDateFormat("MM/yy").parse(sdate);
HSSFCellStyle dateStyle =
wb.createCellStyle();
dateStyle.setDataFormat(HSSFDataFormat.getBuiltinFormat("m/yy"));
log.info("Date is "+date);
cellDate.setCellValue(date);
...........................Error thrown at this point
cellDate.setCellStyle(dateStyle);
Regards
Hepzibah
