isSameDay method

bool isSameDay(
  1. DateTime input
)

Returns true if the input DateTimes are on the same day, ignoring the time.

Implementation

bool isSameDay(DateTime input) {
  return input.year == year && input.month == month && input.day == day;
}