wps的excel中日期单元格的格式设置为自定义yyyy-mm-dd,
然后, cell.setCellType(Cell.CELL_TYPE_NUMERIC);获得的单元格中的值设为数值格式,
然后,case Cell.CELL_TYPE_NUMERIC:
// 先看是否是日期格式
if (DateUtil.isCellDateFormatted(cell)) {
// 读取日期格式
cellStr = .........DateUtil.formatDate(cell.getDateCellValue(), "yyyy-MM-dd");
} else {
// 读取数字
double d = cell.getNumericCellValue();...................................................