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



Teradata.Client.Provider Namespace > TdDate Structure : GreaterThan Method
An instance of TdDate.
An instance of TdDate.
Compares two TdDates to determine whether the left operand is greater than the right operand.
Syntax
'Declaration
 
Public Shared Function GreaterThan( _
   ByVal left As TdDate, _
   ByVal right As TdDate _
) As Boolean
'Usage
 
Dim left As TdDate
Dim right As TdDate
Dim value As Boolean
 
value = TdDate.GreaterThan(left, right)
public static bool GreaterThan( 
   TdDate left,
   TdDate right
)
public:
static bool GreaterThan( 
   TdDate left,
   TdDate right
) 

Parameters

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

Return Value

A boolean is returned that indicates the result of the comparison.
Remarks

The value returned is true if the left is greater than the right, false otherwise.

Return Value Description
true left and right are not TdDate.Null and left is greater than right.
false

left and / or right is Null

-or-

left is less than or equal to right.

Comparison operators always returns false if one of the operands is Null. Therefore, you must not assume that the reverse condition is true. For example you cannot assume that the left operand is less than or equal to the right operand if the GreaterThan operator returns false.

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