On Wed, 17 Aug 2011, Alan Bowsher wrote:
Yeah, but I'm using the SAX parser.... I don't have an XSSFWorkbook
(unless there's some way to get to it that I don't understand).

You want to look at the code of how XSSFWorkbook does it, and do something similar.

Nick

-----Original Message-----
From: Nick Burch [mailto:[email protected]]
Sent: Wednesday, August 17, 2011 7:31 AM
To: POI Users List
Subject: Re: XSSF SAX parser and dates

On Tue, 16 Aug 2011, Alan Bowsher wrote:
My only question is, using the SAX parser, how do I tell if the
workbook is using the 1904-indexed dates?  Or is that so unlikely to
be used that I shouldn't worry about it?

The 1900 vs 1904 date information is stored on the workbook. If you look
at XSSFWorkbook you can see how to check for it - isDate1904()

Nick

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


________________________________________________________________________
_____
Scanned by IBM Email Security Management Services powered by
MessageLabs. For more information please visit
http://www-935.ibm.com/services/us/index.wss/offerfamily/iss/a1026954
________________________________________________________________________
_____

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



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

Reply via email to