isBeforeOrSameDay method

bool isBeforeOrSameDay(
  1. DateTime date
)

Implementation

bool isBeforeOrSameDay(DateTime date) {
  return year < date.year ||
      year == date.year &&
          (month < date.month || month == date.month && day <= date.day);
}