Hello:
I was wondering I have a question about Date formats supported. I am reading
a xls, file that has some sell data that are formatted as dates. When I read
the date fields in I get a double, back. I have read the achieves and back
in July some one posted this very problem, and the reply was that the person
was using a custom date format. I assure you I am not using a custom date
format.. any ideas...
My code:
case HSSFCell.CELL_TYPE_NUMERIC:
double d = cell.getNumericCellValue();
if(HSSFDateUtil.isCellDateFormatted(cell)){
Date date = HSSFDateUtil.getJavaDate(d);
System.out.println("Date: "+date.toString());
}else{
System.out.println("Numeric: "+d);
}
any help would be appreciated thanks
Rob
Forgive me if this is a duplicate post I tried to send it yesterday but did
not see my post anywhere