I'm using Apache POI 3.6, I want to read an excel file having date like "8/23/1991".
switch (cell.getCellType()) {
...
...
case HSSFCell.CELL_TYPE_NUMERIC:
value = "NUMERIC value=" + cell.getNumericCellValue();
break;
...
}
But it takes the numeric value type and returns the value like this "33473.0". I've tried some level(with in the Numeric Cell Type),
dbltemp=row.getCell(c, Row.CREATE_NULL_AS_BLANK).getNumericCellValue();
if(c == 6 || c == 9) {
strTemp= new String(dbltemp.toString().trim());
long tempDate = Long.parseLong(strTemp);
Date date=new Date(tempDate);
strVal=date.toString();
}
yet I can't find it.
Thanks for those who can help....