Returns the last day of the month containing date.
date
static DateTime lastDayOfMonth(DateTime date) { return DateTime(date.year, date.month + 1, 0); }