function setStartDate(rangeBar, value) {
  if (Array.isArray(rangeBar)) {
    rangeBar[1] = value;
  } else {
    rangeBar.startDate = value;
  }
}
Set the start date of the provided range bar.

@param {Object} rangeBar The range bar object.
@param {Date} value The new start date value.