What indicates an Office Open XML Cell contains a Date/Time value?

前端 未结 6 2009
-上瘾入骨i
-上瘾入骨i 2020-11-27 13:26

I\'m reading an .xlsx file using the Office Open XML SDK and am confused about reading Date/Time values. One of my spreadsheets has this markup (generated by Excel 2010)

6条回答
  •  情深已故
    2020-11-27 14:07

    In styles.xml see if there is a numFmt node. I think that will hold a numFmtId of "9" which will relate to the date format that's used.

    I don't know where that is in the ECMA, but if you search for numFmt, you might find it.

提交回复
热议问题