Can first determine the type of cell, there are stored character strings date, some of (the cell number by parsing) stored by date, as follows:
Cell cell = row.getCell(8); Date date = null; if (cell.getCellType() == CellType.STRING){ //按字符串转换日期 } else if (cell.getCellType() == CellType.NUMERIC) { date = cell.getDateCellValue(); }