Bug 22505 - HSSFDateUtil.getExcelDate((java.util.Date)CO) returns -1.0 when Date > 1.1.2000
Summary: HSSFDateUtil.getExcelDate((java.util.Date)CO) returns -1.0 when Date > 1.1.2000
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 2.0-pre3
Hardware: All Linux
: P3 blocker (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2003-08-18 10:21 UTC by pbu
Modified: 2004-11-16 19:05 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description pbu 2003-08-18 10:21:23 UTC
I am trying to export database reports to excel files and whenever i have to put a date > 
Jan,1,2000 into a cell the call to HSSFDateUtil.getExcelDate((java.util.Date)CO) returns 
the date Dez,31,1999 works. Anything beyond that date does not work.
Comment 1 pbu 2003-08-18 10:49:03 UTC
Sorry folks, forget it please! 
It's been my fault. I accidentally took the date's display-string where the year is truncated 
to the last two digits instead of the real date with full 4 digits year.