compare method

bool compare(
  1. DateTime target
)

Implementation

bool compare(DateTime target) {
  return (this.year == target.year) &&
      (this.month == target.month) &&
      (this.day == target.day);
}