DateTime.daysInMonth Method
See Also

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

Namespace: com.mindfusion.common
Package: com.mindfusion.common


Java  Copy Code

public static int daysInMonth (
    int year,
    int month



The year.


The month (a number ranging from 1 to 12).

 Return Value

The number of days in month for the specified year. For example, if month equals 2 for February, the return value is 28 or 29 depending upon whether year is a leap year.

 See Also