Calendar: GetMonthsInYear

GetMonthsInYear

Returns the number of months in the specified year.



 Public Function GetMonthsInYear(
	  ByVal Year As Long,
	  Optional ByRef Era As Variant ) As Long

Parameters

Year
[ByVal] Long. The year to get the number of months of.
Era
[ByRef] Optional. Variant. The era the year exists in.

Return Values

Long -  The number of months in the year.

Remarks

In some calendars not all years have the same number of months. The Hebrew calendar can have 13 months on leap years.

See Also

Project CorLib Overview

Class Calendar Overview