Send feedback on this topic.
Teradata.Client.Provider
Equals(TdDate,TdDate) Method
Example 



Teradata.Client.Provider Namespace > TdDate Structure > Equals Method : Equals(TdDate,TdDate) Method
A TdDate instance.
A TdDate instance.
Compares two TdDate instances to determine whether they are equal.
Syntax
'Declaration
 
Public Overloads Shared Function Equals( _
   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.Equals(left, right)
public static bool Equals( 
   TdDate left,
   TdDate right
)
public:
static bool Equals( 
   TdDate left,
   TdDate right
) 

Parameters

left
A TdDate instance.
right
A TdDate instance.

Return Value

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

The value returned is true if the left is equal to the right, false otherwise.

Return Value Description
true

left and right are TdDate.Null

-or-

left is equal to right.

false

left or right is Null

-or-

left is not equal to right.

Example
The following code example uses various comparison methods and operators.
TdDate  later = new TdDate(2010, 8, 31);
TdDate earlier = new TdDate(2007, 8, 31);
 
// The following comparison methods and operators are equivalent
if (false == TdDate.Equals(later, earlier) ||
    late != earlier ||
    true == TdDate.NotEquals(later, earlier) )
{
   Console.WriteLine(“later does not equal earlier”);
}
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
Overload List