用jxl读取Excel日期单元格内容

if (cell.getType() == CellType.DATE) {

DateCell dateCell = (DateCell) cell;

Date date = dateCell.getDate();

System.out.println(new SimpleDateFormat("yyyy/MM/dd").format(date));

}

Comments are closed.