DateOptions.AddMonths Method

Returns a date that is the specified number of months away from the specified date.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.Struct)> _
Public Function AddMonths ( _
    cDate As SimpleDate, _
    nMonths As Integer _
) As SimpleDate
'Usage
Dim instance As DateOptions
Dim cDate As SimpleDate
Dim nMonths As Integer
Dim returnValue As SimpleDate

returnValue = instance.AddMonths(cDate, _
    nMonths)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.Struct)]
public SimpleDate AddMonths(
    SimpleDate cDate,
    int nMonths
)

Parameters

Return Value

Type: Microsoft.SharePoint.Utilities.SimpleDate
A SimpleDate value that represents the date that results from adding the specified number of months to the specified SimpleDate value.

See Also

Reference

DateOptions Class

DateOptions Members

Microsoft.SharePoint.Utilities Namespace