Here you can find the source of resetToBeginningOfDay(Calendar c)
static public void resetToBeginningOfDay(Calendar c)
//package com.java2s; /******************************************************************************* * Copyright (c) 2014 Whizzo Software, LLC. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html *******************************************************************************/ import java.util.Calendar; public class Main { static public void resetToBeginningOfDay(Calendar c) { c.set(Calendar.HOUR_OF_DAY, 0); c.set(Calendar.MINUTE, 0); c.set(Calendar.SECOND, 0); c.set(Calendar.MILLISECOND, 0); }/*from w ww . ja va2 s .co m*/ }