Returns the number of days in the given month of year.
month
year
static int daysInMonth(int year, int month) { return DateTime(year, month + 1, 0).day; }