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
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