How to distinguish inline numbers from OLE Automation date numbers in OpenXML SpreadSheet?
问题 I have to consume some xlsx documents. I've read Reading a date from xlsx using open xml sdk and http://www.dotnetperls.com/fromoadate. Most of my columns are texts (shared strings), but there are some numbers (integer numbers), and I have also some dates and date-times. I'm using OpenXML SDK 2.5. My problem is that I don't know how to distinguish the actual numbers from the dates. Both of them has DataType of null , and the textual number representation is in the Text property of the cell.