展开全部
读取excel文件中日期内容e69da5e6ba903231313335323631343130323136353331333337613862是通过poi获取的,代码如下:HSSFWorkbook excbook = new HSSFWorkbook(ExcFile);
//获取第一个sheet页 HSSFSheet excSheet = excbook.getSheetAt(0);
//获取第一行
HSSFRow oneRow = excSheet.getRow(0);
//获取第一行的第一个表格
HSSFCell oneCell = oneRow.getCell(0);
switch (oneCell.getCellType()) {
case HSSFCell.CELL_TYPE_NUMERIC:
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
if(HSSFDateUtil.isCellDateFormatted(oneCell)){
String str = sdf.format(HSSFDateUtil.getJavaDate(oneCell.getNumericCellValue())).toString();
System.out.println(str);
}
break;
}