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



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

Parameters

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

Return Value

A TdDate is returned that is the result of adding the TdIntervalYearToMonth to a TdDate.
Exceptions
ExceptionDescription
Unable to add the 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

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