isSameDay static method

bool isSameDay(
  1. DateTime dateA,
  2. DateTime dateB
)

Implementation

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