org.apache.poi.hssf.usermodel.HSSFDateUtil
http://jakarta.apache.org/poi/apidocs/org/apache/poi/hssf/usermodel/HSSF DateUtil.html > -----Original Message----- > From: Mike Wertheim [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 22, 2004 12:33 PM > To: [EMAIL PROTECTED] > Subject: When is an HSSFCell a date? > > > Hi all, > > I'm new to the list. I've been a poi user for a year and have been > loving it. > > I need to parse some date fields from an xls file, and am a bit > confused. It seems that if a cell contains a date, > HSSFCell.getCellType() returns CELL_TYPE_NUMERIC. If I know in advance > that the cell contains a date, I can easily convert the returned number > into a date. But if I don't know in advance what is in the cell, how > can I determine if the cell is a date or not? > > Is this something that the file format make particularly difficult, or > is it a poi implementation issue? > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
