docs: public Date getEndDate()
      {
          if ((m_startTime != null) && (m_endTime != null))
          {
              if (m_endTime.before(m_startTime))
                  return m_startTime;
          }
          return m_endTime;
      }