Gets the value of a cell as a date. This property is relevant for cells that are formatted as dates or contain date information.
public DateTime DateCellValue { get; }
The DateCellValue property is a read-only property that extracts the content of an Excel cell as a DateTime
.
The DateCellValue property is often used in conjunction with other cell properties. One such case is using in conjunction with CellType to ensure that the cell is indeed a date type before attempting to access its date value.