I have spent a few hours but still have no satisfying answer.
When I click cell in excel document it is marked as Date field. However, if I use OpenXml to investigate DateType - I will receive Cell object with DataType NULL. I have noticed, that Cell.StyleIndex in this case is set to "116" but I would like to have guarantee, that I will always recognize Date-cell in the same way as Excel can do it. How to get complete list of Data style indexes which indicates Date field?
public bool IsDateCell(Cell cell)
{
switch (cell.StyleIndex.Value)
{
case 116: return true;
case 98: return true;
case 283: return true;
case 282: return true;
default: return false;
}
}