Here you can find the source of toVonTime(final Calendar cal)
public static void toVonTime(final Calendar cal)
//package com.java2s; import java.util.Calendar; import java.util.Date; public class Main { public static void toVonTime(final Calendar cal) { cal.set(Calendar.HOUR_OF_DAY, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); }//www. j av a2s . co m public static Date toVonTime(final Date cal) { final Calendar calendar = Calendar.getInstance(); calendar.setTime(cal); toVonTime(calendar); return calendar.getTime(); } }