ISPCalendar.DaysInMonth method (SimpleDate)
Returns the number of days in the month of the specified date.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Function DaysInMonth ( _
ByRef di As SimpleDate _
) As Integer
'Usage
Dim instance As ISPCalendar
Dim di As SimpleDate
Dim returnValue As Integer
returnValue = instance.DaysInMonth(di)
int DaysInMonth(
ref SimpleDate di
)
Parameters
di
Type: Microsoft.SharePoint.Utilities.SimpleDateThe SimpleDate to evaluate.
Return value
Type: System.Int32
An integer that represents the number of days in the month of the specified date.