Send feedback on this topic.
Teradata.Client.Provider
AddYears Method (TdDate)



Teradata.Client.Provider Namespace > TdDate Structure : AddYears Method
The number of years to add to the date.
Adds the specified number of years to the this instance of TdDate.
Syntax
'Declaration
 
Public Function AddYears( _
   ByVal years As Integer _
) As TdDate
'Usage
 
Dim instance As TdDate
Dim years As Integer
Dim value As TdDate
 
value = instance.AddYears(years)
public TdDate AddYears( 
   int years
)
public:
TdDate AddYears( 
   int years
) 

Parameters

years
The number of years to add to the date.

Return Value

A TdDate structure is returned.
Exceptions
ExceptionDescription
Unable to add the specified number of years to this instance of TdDate.
Remarks

If this instance of TdDate is Null a TdDate.Null will be returned.

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