Share via


ISPCalendar.MonthsInYear method

Returns the number of months in the year of the specified date.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Function MonthsInYear ( _
    ByRef di As SimpleDate _
) As Integer
'Usage
Dim instance As ISPCalendar
Dim di As SimpleDate
Dim returnValue As Integer

returnValue = instance.MonthsInYear(di)
int MonthsInYear(
    ref SimpleDate di
)

Parameters

Return value

Type: System.Int32
An integer that represents the number of months in the year of the specified date.

See also

Reference

ISPCalendar interface

ISPCalendar members

Microsoft.SharePoint.Utilities namespace