I have used Apache poi DataFormatter class for getting the date same as given in excel sheet. But in the below case, it is failing.
For example, if I give the date as 19/9/2017, it is getting as 19/9/17.
I have used below code to get the date value same as given in excel sheet.
DataFormatter df = new DataFormatter();
String stringCellValue = df.formatCellValue(cell).toString();