SP.Utilities.DateUtility.daysInMonth(year, month) Method

Applies to: SharePoint Foundation 2010

In this article
Return Value
Remarks
Applies To

Gets the number of days in the specified month in the specified year.

var value = SP.Utilities.DateUtility.daysInMonth(year, month);

Parameters

year

Type: int

The specified year.

month

Type: int

The specified month.

Return Value

Type: int

The number of days.

Remarks

The year and month should be valid in the Gregorian calendar.

Applies To

SP.Utilities.DateUtility Class

See Also

Reference

SP.Utilities.DateUtility Methods

SP.Utilities Namespace