return true if the dates is the same
bool isSameDate(DateTime other) { return this.year == other.year && this.month == other.month && this.day == other.day; }