if (DateUtil.isCellDateFormatted(cell)) {//判断是否时时间格式
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
value = sdf.format(cell.getDateCellValue());
}```
if (DateUtil.isCellDateFormatted(cell)) {//判断是否时时间格式
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
value = sdf.format(cell.getDateCellValue());
}```