Calendar.NumberOfMonthsInThisYear Calendar.NumberOfMonthsInThisYear Calendar.NumberOfMonthsInThisYear Calendar.NumberOfMonthsInThisYear Calendar.NumberOfMonthsInThisYear Property

Definition

Gets the number of months in the current year of this Calendar object.

public : int NumberOfMonthsInThisYear { get; }
int32_t NumberOfMonthsInThisYear();
public int NumberOfMonthsInThisYear { get; }
Public ReadOnly Property NumberOfMonthsInThisYear As int
var int = calendar.numberOfMonthsInThisYear;

Property Value

int int int

The number of months in the current year, or – 1 if the number of months in the current year is unknown.