class DateUtils {

	public static Date getLastDayOfMonth(Date date) {

		Calendar lastDayOfMonth = Calendar.getInstance();
		lastDayOfMonth.setTime(DateUtils.maxHourInDate(date));
		lastDayOfMonth.set(Calendar.DAY_OF_MONTH, lastDayOfMonth.getMaximum(Calendar.DAY_OF_MONTH));
		
		return lastDayOfMonth.getTime();
	}

}