1

I try to get data from .xlsx. The format of cell in excel is set: short date. Cell value: 12.01.2018. In console log I received: 1/12/19 but I need exactly the same value which is in cell. Here is my code:

DataFormatter formatter = new DataFormatter();
String val = formatter.formatCellValue(arkusz1.getRow(i).getCell(j));
tabArray[i][j] = val;
System.out.println("tabArray["+i+"]["+j+"] = " + val);```
deHaar
  • 17,687
  • 10
  • 38
  • 51

0 Answers0