public static void clearTimeOfDay(Calendar calendar){
  calendar.set(Calendar.MILLISECOND,0);
  calendar.set(Calendar.SECOND,0);
  calendar.set(Calendar.MINUTE,0);
  calendar.set(Calendar.HOUR_OF_DAY,0);
}

public static void clearTimeOfDay ( Calendar calendar ) { calendar . set ( Calendar . MILLISECOND , 0 ) ; calendar . set ( Calendar . SECOND , 0 ) ; calendar . set ( Calendar . MINUTE , 0 ) ; calendar . set ( Calendar . HOUR_OF_DAY , 0 ) ; }
clears the time of day in a calendar instance .
