isBeforeDay method

bool isBeforeDay(
  1. DateTime date
)

Implementation

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