Spread Windows Forms 15.0
GrapeCity.CalcEngine Assembly / GrapeCity.CalcEngine Namespace / CalcHelper Class / ToDate(Double,Boolean,Boolean) Method
A double value indicates the date serial.
if set to true, the 1904 date system is using.
true if date time system is compatible with Excel; otherwise, false.


In This Topic
    ToDate(Double,Boolean,Boolean) Method
    In This Topic
    Converts date serial to System.DateTime value.
    Syntax
    'Declaration
     
    
    Public Shared Function ToDate( _
       ByVal value As Double, _
       ByVal isDate1904 As Boolean, _
       ByVal excelDateTimeCompatible As Boolean _
    ) As Date
    'Usage
     
    
    Dim value As Double
    Dim isDate1904 As Boolean
    Dim excelDateTimeCompatible As Boolean
    Dim value As Date
     
    value = CalcHelper.ToDate(value, isDate1904, excelDateTimeCompatible)

    Parameters

    value
    A double value indicates the date serial.
    isDate1904
    if set to true, the 1904 date system is using.
    excelDateTimeCompatible
    true if date time system is compatible with Excel; otherwise, false.

    Return Value

    A double value represents the date serial.
    See Also