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



Teradata.Client.Provider Namespace > TdDate Structure > Addition Operator : Addition(TdDate,TdIntervalYearToMonth) Operator
A TdDate.
A TdIntervalYearToMonth that will be added to TdDate.
Adds the specified TdIntervalYearToMonth to a TdDate.
Syntax
'Declaration
 
Overloads Public Operator +( _
   ByVal date As TdDate, _
   ByVal interval As TdIntervalYearToMonth _
) As TdDate
'Usage
 
public TdDate operator +( 
   TdDate date,
   TdIntervalYearToMonth interval
)
public:
TdDate operator +( 
   TdDate date,
   TdIntervalYearToMonth interval
)

Parameters

date
A TdDate.
interval
A TdIntervalYearToMonth that will be added to TdDate.

Return Value

A TdDate is returned that is the result of adding the TdIntervalYearToMonth to a TdDate.
Exceptions
ExceptionDescription
Unable to add TdIntervalYearToMonth to the TdDate.
Remarks

If either parameter is Null a TdDate.Null will be returned.

The interval interval will be added to the TdDate. For example, if the date is "2007-10-04" and the interval is "10-03" (10 years, 3 months) the operation will result in "2018-01-04".

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