How can I obtain the last day of the month with the timestamp being 11:59:59 PM?
Calendar cal = Calendar.getInstance(); cal.set(Calendar.DATE, cal.getActualMaximum(Calendar.DATE)); Date lastDayOfMonth = cal.getTime();