poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 42630] - Excel : isInternalDateFormat
Date Sun, 17 Jun 2007 15:54:08 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42630>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42630


nick@torchbox.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From nick@torchbox.com  2007-06-17 08:54 -------
I'm pretty sure that a format with an ID as high as 198 isn't an internal
(excel) date format. Instead, at the file format level, it's almost certainly a
custom date format (even if it might now be a standard one in an excel dropdown)

I've added a new method to HSSFDateUtil of isADateFormat. You pass this both the
format ID, and the format string. If it's an internal date format, it'll return
true. If not, it looks at the format string, and if that's only made up of date
formatting characters, returns true.

Try giving that a whirl, it's in svn.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message