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 ) ; }
Return true if the given date is the last day of the month ; false otherwise .