The problem is as shown
Look at the official website and just follow the instructions. Official case
var startDateTextBox = $('#range_example_4_start'); var endDateTextBox = $('#range_example_4_end'); $.timepicker.dateRange( startDateTextBox, endDateTextBox, { minInterval: (1000*60*60*24*4), // 4 days maxInterval: (1000*60*60*24*8), // 8 days start: {}, // start picker options end: {} // end picker options } );
Look at the official website and just follow the instructions. Official case