Here you can find the source of getTodayZero()
public static Date getTodayZero()
//package com.java2s; //License from project: Apache License import java.util.Date; public class Main { public static Date getTodayZero() { java.util.Calendar c = java.util.Calendar.getInstance(); c.setTime(new Date()); c.set(java.util.Calendar.HOUR_OF_DAY, 0); c.set(java.util.Calendar.MINUTE, 0); c.set(java.util.Calendar.SECOND, 0); return c.getTime(); }/*from w w w .j a v a2s . c om*/ }