DatePicker upgrade

DatePicker upgrade


Hi All,
I just realized the new version of DatePicker is the old Calendar
plugin. I'm looking to upgrade a page, but it looks like some of the
syntax has changed(with a LOT more functionality!). Essentially I had
a simple calendar date range with 2 fields. With the code for ensuring
that the end date comes after the start date. I can't see exactly how
this would work using the new version. Any help would be great!
old code:
$("input#startDate,input#endDate").calendar({fieldSettings:
customRange});
inlineStart = $('input#startDate');
inlineEnd = $('input#endDate');
function customRange(input) {
    var dateStart = popUpCal.getDateFor(inlineStart[0]);
    var dateEnd = popUpCal.getDateFor(inlineEnd[0]);
    popUpCal.reconfigureFor(inlineStart[0], {maxDate: dateEnd});
    popUpCal.reconfigureFor(inlineEnd[0], {minDate: dateStart});
}
Thanks!