The problem is that when I clear the dates (by deleting the textbox values), th
$('.date').datepicker('setDate', null);