Table of Contents

Method ToDateTime

Namespace
DocWright.Formats.Xlsx
Assembly
DocWright.Formats.Xlsx.dll

ToDateTime()

Converts the cell's number to the date and time it stands for, in the workbook's date system.

public DateTime? ToDateTime()

Returns

DateTime?

The date and time to the millisecond; null when the value is not a number, is negative, or is past the year 9999. The conversion does not ask IsDate: any number is a date if the caller says so.