how to print the exact date cell value in the excel sheet date format like mm/dd/yyyy using apache poi

前端 未结 1 630
再見小時候
再見小時候 2021-01-05 23:34

I am using apache poi 3.5 for extracting data from the excel sheet.i having the date cell formatted in mm/dd/yyyy.

If i print using cell.getDateCellValue() then prin

相关标签:
1条回答
  • 2021-01-06 00:05

    just call the method formatCellValue(Cell), formatCellValue(cell, formulaEvaluator) in the DataFormatter class. It will print the value as it is in the excel sheet.

    formatCellValue(cell, formulaEvalator) for formula cells...

    0 讨论(0)
提交回复
热议问题