isTheSame method

bool isTheSame(
  1. DateTime first,
  2. DateTime second
)

returns true if first and second are the same

Implementation

bool isTheSame(DateTime first, DateTime second) {
  return first.day == second.day &&
      first.month == second.month &&
      first.year == second.year;
}