Share via


DateOptions.AddYears Method

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

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

Syntax

[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.Struct)]
public SimpleDate AddYears(
    SimpleDate cDate,
    int nYears
)

Parameters

Return Value

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

See Also

Reference

DateOptions Class

DateOptions Members

Microsoft.SharePoint.Utilities Namespace