如何使用apache poi打印excel工作表日期格式中的确切日期单元格值,如mm/dd/yyyy

Sar*_*nan 5 apache-poi

我正在使用apache poi 3.5从excel sheet.i中提取数据,其日期单元格格式为mm/dd/yyyy.

如果我使用cell.getDateCellValue()打印然后以其他格式打印日期.所以,我想打印excel表单元格的实际格式的日期.

我是怎么做的......请指导我这样做....

Saravanan

Sar*_*nan 6

只是调用该方法formatCellValue(Cell),formatCellValue(cell, formulaEvaluator)DataFormatter类.它将打印excel表中的值.

formatCellValue(cell, formulaEvalator) 配方细胞......