Send feedback on this topic.
Teradata.Client.Provider
Subtraction(TdDate,TdDate) Operator



Teradata.Client.Provider Namespace > TdDate Structure > Subtraction Operator : Subtraction(TdDate,TdDate) Operator
The left TdDate operand.
The right TdDate operand.
The number of days between two TdDates is returned when a TdDate is subtracted from another TdDate.
Syntax
'Declaration
 
Overloads Public Operator -( _
   ByVal leftOperand As TdDate, _
   ByVal rightOperand As TdDate _
) As Integer
'Usage
 
public int operator -( 
   TdDate leftOperand,
   TdDate rightOperand
)
public:
int operator -( 
   TdDate leftOperand,
   TdDate rightOperand
)

Parameters

leftOperand
The left TdDate operand.
rightOperand
The right TdDate operand.

Return Value

An Int32 is returned that represents the number of days between the left and right dates.
Exceptions
ExceptionDescription
One of the operands 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