docs: public static Date lastDayOfMonth(Date date) {
          Calendar cal = Calendar.getInstance();
          cal.setTime(date);
          int value = cal.getActualMaximum(Calendar.DAY_OF_MONTH);
          cal.set(Calendar.DAY_OF_MONTH, value);
          return cal.getTime();
      }