Java tutorial
//package com.java2s; //License from project: Apache License import java.util.Calendar; public class Main { /** * Clean hours, minutes, seconds and milliseconds * @param c Calendar to clean */ public static void cleanDay(Calendar c) { c.set(Calendar.HOUR_OF_DAY, 0); c.set(Calendar.MINUTE, 0); c.set(Calendar.SECOND, 0); c.set(Calendar.MILLISECOND, 0); } }