DateWithZone.DaysInMonth MethodDateWithZone.DaysInMonth MethodDateWithZone::DaysInMonth Method

Returns the number of days in the specified month of a specified year.

Syntax

Public Shared Function DaysInMonth( _
    year As Long, _
    month As Integer _
) As Integer
public static int DaysInMonth(
    long year,
    int month
)
public:
static int DaysInMonth(
    long year, 
    int month
)
 

Parameters

year

Type: System.Int64System.Int64System::Int64

The year.

month

Type: System.Int32System.Int32System::Int32

The month.

Return Value

Type: System.Int32System.Int32System::Int32

The number of days in the given month.