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


In This Topic
    CompareDateTime(Nullable<DateTimeOffset>,Nullable<DateTimeOffset>) Method
    In This Topic
    Compares two nullable DateTimeOffset values
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function CompareDateTime( _
       ByVal x As Nullable(Of DateTimeOffset), _
       ByVal y As Nullable(Of DateTimeOffset) _
    ) As Integer
    public static int CompareDateTime( 
       Nullable<DateTimeOffset> x,
       Nullable<DateTimeOffset> y
    )
    public:
    static int CompareDateTime( 
       Nullable<DateTimeOffset> x,
       Nullable<DateTimeOffset> 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.DateTimeOffset.Compare(System.DateTimeOffset,System.DateTimeOffset)(x, y).
    See Also