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



Teradata.Client.Provider Namespace > TdDate Structure > Subtraction Operator : Subtraction(TdDate,Int32) Operator
A TdDate.
The number of days that will be subtracted from a TdDate
Subtracts the specified number of days from a TdDate.
Syntax
'Declaration
 
Overloads Public Operator -( _
   ByVal date As TdDate, _
   ByVal days As Integer _
) As TdDate
'Usage
 
public TdDate operator -( 
   TdDate date,
   int days
)
public:
TdDate operator -( 
   TdDate date,
   int days
)

Parameters

date
A TdDate.
days
The number of days that will be subtracted from a TdDate

Return Value

A TdDate is returned that is the result subtracting the specified number of days from a TdDate.
Exceptions
ExceptionDescription
Unable to subtract the specified number of days from the TdDate.
Remarks

If the date parameter is Null a TdDate.Null will be returned.

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