Here you can find the source of setStartOfDay(final Calendar calendar)
public static void setStartOfDay(final Calendar calendar)
//package com.java2s; //License from project: Open Source License import java.util.Calendar; public class Main { public static void setStartOfDay(final Calendar calendar) { calendar.set(Calendar.HOUR, 0); calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.SECOND, 0); calendar.set(Calendar.MILLISECOND, 0); }//from w w w .j a va2 s .co m }