Spread Windows Forms 15.0
GrapeCity.CalcEngine Assembly / GrapeCity.CalcEngine Namespace / CalcHelper Class / ToNumber Method / ToNumber(DateTime,Boolean,Boolean) Method
The System.DateTime value.
if set to true, the 1904 date system is using.


In This Topic
    ToNumber(DateTime,Boolean,Boolean) Method
    In This Topic
    Convert DateTime to number.
    Syntax
    '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)

    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.
    See Also