Date start - The starting date for the new outer range.
Date end - The ending date for the new outer range.
# This example moves the existing Outer Date Range
# of a Date Range component back two days
from java.util import Calendar
# Get the current start and end of the outer range
dateRangeComponent = event.source.parent.getComponent('Date Range')
startDate = dateRangeComponent.outerRangeStartDate
endDate = dateRangeComponent.outerRangeEndDate
# Calculate the new start and end dates for the outer range
cal = Calendar.getInstance();
cal.setTime(startDate);
cal.add(Calendar.DAY_OF_MONTH, 2);
newStart = cal.getTime();
cal.setTime(endDate);
cal.add(Calendar.DAY_OF_MONTH, 2);
newEnd = cal.getTime();
# Set the new outer range for the component.
dateRangeComponent.setOuterRange(newStart, newEnd)