Here you can find the source of setToStartOfDay(Calendar start)
public static void setToStartOfDay(Calendar start)
//package com.java2s; //License from project: Open Source License import java.util.Calendar; import java.util.GregorianCalendar; public class Main { public static void setToStartOfDay(Calendar start) { start.set(GregorianCalendar.HOUR_OF_DAY, 0); start.set(GregorianCalendar.MINUTE, 0); }/*w ww .j a v a2s. c o m*/ }