isSameDay static method

bool isSameDay(
  1. DateTime a,
  2. DateTime b
)

Whether or not two times are on the same day.

Implementation

static bool isSameDay(DateTime a, DateTime b) {
  return a.year == b.year && a.month == b.month && a.day == b.day;
}