function isAllDay(start, end) {
  // If it has an end date then it's multi-day
  if (end.date) {
    return true;
  }
  let starthr = getHourFromTimeStr(start.startTime),
      endhr   = getHourFromTimeStr(start.endTime);

  // starts before 9 and ends after 4
  return starthr <= 9 && endhr >= 16;
}
// Determine if an event is all day
Determine if an event is all day
Determine if an event is all day
function isAllDay(start, end) {
  if (end.date) {
    return true;
  }
  let starthr = getHourFromTimeStr(start.startTime),
      endhr   = getHourFromTimeStr(start.endTime);
  return starthr <= 9 && endhr >= 16;
}
function isAllDay ( start , end ) { if ( end . date ) { return true ; } let starthr = getHourFromTimeStr ( start . startTime ) , endhr = getHourFromTimeStr ( start . endTime ) ; return starthr <= 9 && endhr >= 16 ; }
Determine if an event is all day
Determine if an event is all day
// If it has an end date then it's multi-day // starts before 9 and ends after 4