'Declaration
Public Overloads Shared Function ToNumber( _ ByVal date As Date, _ ByVal isDate1904 As Boolean, _ ByVal excelDateTimeCompatible As Boolean _ ) As Double
'Usage
Dim date As Date Dim isDate1904 As Boolean Dim excelDateTimeCompatible As Boolean Dim value As Double value = CalcHelper.ToNumber(date, isDate1904, excelDateTimeCompatible)
public static double ToNumber( DateTime date, bool isDate1904, bool excelDateTimeCompatible )
Parameters
- date
- The System.DateTime value.
- isDate1904
- if set to
true
, the 1904 date system is using. - excelDateTimeCompatible
Return Value
A double value represents the date serial.