poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Stief <mikest...@cox.net>
Subject HSSFDateUtil.isCellDateFormatted(HSSFCell celll)
Date Mon, 10 Mar 2003 17:10:58 GMT
Hello,

I am using the HSSFDateUtil.isCellDateFormatted(cell) to determine if the 
field is date formatted.  The problem I am running into is that it is also 
determining that the number format $#,###... is a date formatted object. Is 
there away around this?

Here is the snippet of code:

case HSSFCell.CELL_TYPE_NUMERIC:
                if ( HSSFDateUtil.isCellDateFormatted(cell) )
                   cellNames.addFirst (
                    (HSSFDateUtil.getJavaDate(cell.getNumericCellValue())).
                     toString());

Thanks,

Mike

-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

Mime
View raw message