We added another Helper function to convert the Excel Serial Date to a java Date. If you call Cell.getValue() or Cell.getStringValue(), we were getting back somethign like 32506 (the Excel serial date). This could be added to your Helper class.
public static final java.util.Date convertExcelSerialDate(int serialDate) { Calendar interestDate = Calendar.getInstance();
It is determined by the number format style of the cell that whether the value type is DATE.
So if you find the value type is DATE but the return value is number ,please post your number format id(See Style.getNumber()) or custom number formart string(See Style.getCustom), we will check it.
And we will add Cell.getDateTimeValue() method to return a date value.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.