compareWithoutTime method

bool compareWithoutTime(
  1. DateTime date
)

Compares only day, month and year of DateTime.

Implementation

bool compareWithoutTime(DateTime date) {
  return day == date.day && month == date.month && year == date.year;
}