The default text "select a date range" is displayed even after using setDateRange.
I fixed this by adding this after showGap(); on line 953:
checkSelectionValid();
My lines 951 to 956
951: showMonth(date1,'month1');
952: showMonth(date2,'month2');
953: showGap();
954: checkSelectionValid();
955: showSelectedInfo();
956: autoclose();