Checks if day is in the last day of a month.
day
static bool isLastDayOfMonth(DateTime day) { return nextDay(day).month != day.month; }