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
ProductVersionsPlatforms
.NET6, 7Windows, Linux, MacOS
.NET Framework4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdDate Structure
TdDate Members
Overload List