Does anyone know how to determine the difference between a cell being a date vs. a numeric value? I know dates are stored as numeric values in Microsoft Office. As a result, for all cells containing dates or numeric values the properties of the ICell object appear to have values for both NumericCellValue and DateCellValue. I could determine the proper format by looking at the NumberFormat property but I cannot find it attached to the cell object. Any ideas on how to make the distinction?
This poses a problem when reading in an Excel file because you would have to make the blind assumption if a cell was a date or numeric. There is no way to let the system choose the correct cell value to read.
This poses a problem when reading in an Excel file because you would have to make the blind assumption if a cell was a date or numeric. There is no way to let the system choose the correct cell value to read.