get Date from Excel Sheet using POI
问题 I have get the date from excel sheet using POI using the below code, if (DateUtil.isCellDateFormatted(currentCell)) { Date date = currentCell.getDateCellValue(); cellValue = date.getDate() + "/" + (date.getMonth() + 1) + "/" + (1900 + date.getYear()); } By default the date format of excel sheet is MM/dd/yy. But if I make the month value is greater than 12 (i.e >= 13), the format is changed to dd/MM/yy. By the above code,If I give date as 10/11/2010, it gives month as 10 and date as 11. If I