Here you can find the source of getTodayZeroHour()
public static Date getTodayZeroHour()
//package com.java2s; import java.util.Calendar; import java.util.Date; public class Main { public static Date getTodayZeroHour() { Calendar cal = Calendar.getInstance(); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.HOUR, 0); return cal.getTime(); }/*www.j a v a2 s. c o m*/ }