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
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.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