https://issues.apache.org/bugzilla/show_bug.cgi?id=54149

          Priority: P2
            Bug ID: 54149
          Assignee: [email protected]
           Summary: cell.getDateCellValue()
          Severity: normal
    Classification: Unclassified
                OS: Windows XP
          Reporter: [email protected]
          Hardware: PC
            Status: NEW
           Version: unspecified
         Component: XSSF
           Product: POI

If you use the cell.getDateCellValue() function to extract a date from an Excel
spreadsheet the month value is -1.  In other words January = 0 .... December =
11.  All the other parts of the dates covert fine only the month is incorrect. 
If in an Excel cell there is a date March 15, 2012 08:32:27 and I call
cell.getDateCellValue().toString I will get a string March 15, 2012 08:32:27. 
However, in the code java.util.Date dateObj = cell.getCellDateValue(); 
dateObj.getMonth(); the getMonth() will return a 2 for March.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to