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

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdDate Structure
TdDate Members