Share via


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

Return value

Type: System.Int32
An integer that represents the number of days in the month of the specified date.

See also

Reference

ISPCalendar interface

ISPCalendar members

DaysInMonth overload

Microsoft.SharePoint.Utilities namespace