code: public static boolean isLastDayOfTheMonth(final Date date) {
  
      Date dateOfMonthsBack = getDateOfMonthsBack(-1, date);
      int dayOfMonth = getDayOfMonth(dateOfMonthsBack);
      Date dateOfDaysBack = getDateOfDaysBack(dayOfMonth, dateOfMonthsBack);
      return dateOfDaysBack.equals(date);
    }
docs: Return true if the given date is the last day of the month; false
  otherwise.
  
  @param date date to be tested.
  @return true if the given date is the last day of the month; false
  otherwise.