private void adjustDayOfWeek(Calendar startTime){
  int daysDiff=getDayOfWeek() - getDayOfWeek(startTime);
  startTime.add(Calendar.DAY_OF_WEEK,daysDiff);
}

private void adjustDayOfWeek ( Calendar startTime ) { int daysDiff = getDayOfWeek ( ) - getDayOfWeek ( startTime ) ; startTime . add ( Calendar . DAY_OF_WEEK , daysDiff ) ; }
adjusts the start time to the correct day of the week for a weekly window .
