Here you can find the source of getTodayEnd()
public static Calendar getTodayEnd()
//package com.java2s; //License from project: Apache License import java.util.Calendar; public class Main { public static Calendar getTodayEnd() { Calendar todayEnd = Calendar.getInstance(); todayEnd.set(Calendar.HOUR_OF_DAY, 23); todayEnd.set(Calendar.MINUTE, 59); todayEnd.set(Calendar.SECOND, 59); return todayEnd; }//from w w w .j a va 2 s. c o m }