DateOptions.AddDays Method
Returns a date that is the specified number of days 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 AddDays ( _
cDate As SimpleDate, _
nDays As Integer _
) As SimpleDate
'Usage
Dim instance As DateOptions
Dim cDate As SimpleDate
Dim nDays As Integer
Dim returnValue As SimpleDate
returnValue = instance.AddDays(cDate, _
nDays)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.Struct)]
public SimpleDate AddDays(
SimpleDate cDate,
int nDays
)
Parameters
cDate
Type: Microsoft.SharePoint.Utilities.SimpleDateThe SimpleDate to which to add days.
nDays
Type: System.Int32The number of days to add.
Return Value
Type: Microsoft.SharePoint.Utilities.SimpleDate
A SimpleDate value that represents the date that results from adding the specified number of days to the specified SimpleDate value.