Here you can find the source of resetHourMinSecMill(Date date)
public static java.util.Calendar resetHourMinSecMill(Date date)
//package com.java2s; //License from project: Open Source License import java.util.Date; public class Main { public static java.util.Calendar resetHourMinSecMill(Date date) { java.util.Calendar calendar = java.util.Calendar.getInstance(); if (date != null) { calendar.setTime(date);/*from w w w.jav a2 s . com*/ } calendar.set(java.util.Calendar.MILLISECOND, 0); calendar.set(java.util.Calendar.SECOND, 0); calendar.set(java.util.Calendar.MINUTE, 0); calendar.set(java.util.Calendar.HOUR_OF_DAY, 0); return calendar; } }