Send feedback on this topic.
Teradata.Client.Provider
Compare Method (TdDate)



Teradata.Client.Provider Namespace > TdDate Structure : Compare Method
An instance of TdDate.
An instance of TdDate.
Compares two instances of TdDate and returns a value indicating whether left is greater than, less than or equal to right.
Syntax
'Declaration
 
Public Shared Function Compare( _
   ByVal left As TdDate, _
   ByVal right As TdDate _
) As Integer
'Usage
 
Dim left As TdDate
Dim right As TdDate
Dim value As Integer
 
value = TdDate.Compare(left, right)
public static int Compare( 
   TdDate left,
   TdDate right
)
public:
static int Compare( 
   TdDate left,
   TdDate right
) 

Parameters

left
An instance of TdDate.
right
An instance of TdDate.

Return Value

The result of the comparison is returned as an integer.
Remarks

The integer returned when left is compared to right indicates the following:

Return Value Meaning
Less than zero

left is less than right.

-or-

left is TdDate.Null.

Zero

left is equal to right.

-or-

left and right are Null.

Greater than zero

left is greater than right.

-or-

right is Null.

Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdDate Structure
TdDate Members
CompareTo(TdDate) Method