Calendar.NumberOfDaysInThisMonth Calendar.NumberOfDaysInThisMonth Calendar.NumberOfDaysInThisMonth Calendar.NumberOfDaysInThisMonth Calendar.NumberOfDaysInThisMonth Property

Definition

Gets the number of days in the current month of this Calendar object.

public : int NumberOfDaysInThisMonth { get; }
int32_t NumberOfDaysInThisMonth();
public int NumberOfDaysInThisMonth { get; }
Public ReadOnly Property NumberOfDaysInThisMonth As int
var int = calendar.numberOfDaysInThisMonth;
Property Value
int int int

The number of days in the current month, or – 1 if the number of days in the current month is unknown.