adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / DateTimeHandling Class / CompareDateTime Method / CompareDateTime(Nullable<DateTime>,Nullable<DateTime>) Method


In This Topic
    CompareDateTime(Nullable<DateTime>,Nullable<DateTime>) Method
    In This Topic
    Compares two nullable DateTime values
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function CompareDateTime( _
       ByVal x As Nullable(Of Date), _
       ByVal y As Nullable(Of Date) _
    ) As Integer
    public static int CompareDateTime( 
       Nullable<DateTime> x,
       Nullable<DateTime> y
    )
    public:
    static int CompareDateTime( 
       Nullable<DateTime> x,
       Nullable<DateTime> y
    ) 

    Parameters

    x
    y

    Return Value

    The comparison result
    Remarks
    This method treats a a null reference (Nothing in Visual Basic) as less than a non-a null reference (Nothing in Visual Basic) value. If both x and y have values, it returns the result of System.DateTime.Compare(System.DateTime,System.DateTime)(x, y).
    See Also