I am using Apache POI to read data from Excel worksheets. The defined types of cell are STRING, NUMERIC, BOOLEAN, BLANK, FORMULA and ERROR. When accessing a date column I think POI computes the date field eg. 12/12/2000 and returns a decimal value and the type of this column is NUMERIC. How do I get the exact contents as a STRING without any mathematical operation (division) being performed?
Joined: Mar 22, 2005
This sounds odd. If the cell type is text in the original file, then POI should recognize it as such (i.e, as STRING). What type of cell does Excel think it is?