API Reference
Class
ExcelDateSystemConverter
Converts dates to and from Excel serial values using the workbook's configured date system.
Inheritance
- Object
- ExcelDateSystemConverter
Methods
public static DateTime FromSerial(Double serial, ExcelDateSystem dateSystem) #Returns:
DateTimeConverts an Excel serial value from the selected date system to a date.
Parameters
- serial System.Double
- dateSystem OfficeIMO.Excel.ExcelDateSystem
public static Double ToSerial(DateTime value, ExcelDateSystem dateSystem) #Returns:
DoubleConverts a date to the serial value used by the selected Excel date system.
Parameters
- value System.DateTime
- dateSystem OfficeIMO.Excel.ExcelDateSystem
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Fields
public const Double Date1904OffsetDays #Number of days between the Excel 1900 and 1904 date-system epochs.
Value:
1462