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



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

Parameters

months
The number of months to add to the date.

Return Value

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

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

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