How to set Min and Max range for datetime calender
<p>I am using the calender from the link: <a href="http://razum.si/jQuery-calendar/TimeCalendar.html" rel="nofollow">http://razum.si/jQuery-calendar/TimeCalendar.html</a></p>

<p>but i want one extra function setting min and max date range.</p>

<p>i have two input feilds and set the range with one another.</p>

<p>in my JS i have like this</p>

<pre><code>$("#datepicker1").calendar({ fieldSettings :customRange});
$("#datepicker2").calendar({ fieldSettings :customRange});

function customRange(input) {
    return { 
        minDate : (input.id == 'datepicker2' ? (getDate(jq11('#datepicker1').val())) : null),
        maxDate :(input.id == 'datepicker1' ? (getDate(jq11('#datepicker2').val())) : null)
    } 
}
</code></pre>

<p>but it is not working. Please help me</p>

<p>Thanks in advance</p>
