Here you can find the source of calToBeginningOfDay(Calendar c)
public static synchronized void calToBeginningOfDay(Calendar c)
//package com.java2s; import java.util.Calendar; public class Main { public static synchronized void calToBeginningOfDay(Calendar c) { c.set(Calendar.HOUR_OF_DAY, 0); c.set(Calendar.MINUTE, 0); c.set(Calendar.SECOND, 0); c.set(Calendar.MILLISECOND, 000); }/* w w w. j a v a 2s . com*/ }