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

前端 未结 6 2016
-上瘾入骨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:03

    It was unclear to me how to reliably determine whether a cell has date/time value. After spending some time experimenting I had come up with the code (see post) that would look for both built-in and custom date/time formats.

提交回复
热议问题