KDCalc Class Library

EDate.GetDaysInMonth Method 

Get the number of days in a month given a month and year.

public static int GetDaysInMonth(
   int month,
   int year
);

Parameters

month
The month as specified by an int 1-12.
year
The year specified as an int.

Return Value

The number of days in the specified month.

See Also

EDate Class | KnowledgeDynamics.KDCalc Namespace