I've run into an issue that I honestly can't figure out.
I'm trying to read the data on the file attached, specifically, the two dates.
I've tried all approaches, using GetDateTime(), GetValue(), inspecting the cell, GetValue<int>(), they all fail with an exception thrown when internally attempting to parse the value as a Double.
The odd thing is that this happens whenever the file is edited with Microsoft Excel, or Kingsoft's version. But it can be fixed using LibreOffice, by selecting those two cells, changing the format to Number, and then setting the format back to Date. However, that is obviously not an option since these files are uploaded directly into a system by end user, a manual fix is out of the question.
Now, while inspecting the cell, it is identified as a DateTime cell, however the RichTextValue is shown incorrectly, as 00/25/14 for some reason, instead of actually extracting the correct date.
I've looked at the raw xml contents of the cell, which is the following:
<c r="B1" s="2"><v>41723</v></c>
The only difference I've noticed between the Excel version and the LibreOffice version, is that the LibreOffice one seems to include the "t" parameter, specifying the type as number:
<c r="B1" s="2" t="n"><v>41723</v></c>
I'm trying to read the data on the file attached, specifically, the two dates.
I've tried all approaches, using GetDateTime(), GetValue(), inspecting the cell, GetValue<int>(), they all fail with an exception thrown when internally attempting to parse the value as a Double.
The odd thing is that this happens whenever the file is edited with Microsoft Excel, or Kingsoft's version. But it can be fixed using LibreOffice, by selecting those two cells, changing the format to Number, and then setting the format back to Date. However, that is obviously not an option since these files are uploaded directly into a system by end user, a manual fix is out of the question.
Now, while inspecting the cell, it is identified as a DateTime cell, however the RichTextValue is shown incorrectly, as 00/25/14 for some reason, instead of actually extracting the correct date.
I've looked at the raw xml contents of the cell, which is the following:
<c r="B1" s="2"><v>41723</v></c>
The only difference I've noticed between the Excel version and the LibreOffice version, is that the LibreOffice one seems to include the "t" parameter, specifying the type as number:
<c r="B1" s="2" t="n"><v>41723</v></c>