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



Teradata.Client.Provider Namespace > TdDate Structure > CompareTo Method : CompareTo(TdDate) Method
The TdDate to compare against.
Compares this instance to the specified TdDate other.
Syntax
'Declaration
 
Public Overloads Function CompareTo( _
   ByVal other As TdDate _
) As Integer
'Usage
 
Dim instance As TdDate
Dim other As TdDate
Dim value As Integer
 
value = instance.CompareTo(other)
public int CompareTo( 
   TdDate other
)
public:
int CompareTo( 
   TdDate other
) 

Parameters

other
The TdDate to compare against.

Return Value

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

The integer returned when this instance is compared to other indicates the following:

Return Value Meaning
Less than Zero

This instance is less than other.

-or-

This instance is TdDate.Null.

Zero

This instance is equal to other.

-or-

This instance is Null and value is Null.

Greater than Zero

This instance is greater than other.

-or-

other is Null.

Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdDate Structure
TdDate Members
Overload List