operator < method

bool operator <(
  1. Date other
)

less than operator

Implementation

bool operator <(Date other) {
  return compareTo(other) < 0;
}