The problem is that when I clear the dates (by deleting the textbox values), th
I use this code to clear the field and all shenannigans. I Needed an empty field for my use case
jQuery.datepicker._clearDate(window.firstDay);
window.firstDay.datepicker('setDate',null);
window.firstDay[0].value = '';
For some reason .val('') wouldn't work for me. But bypassing jQuery did it.
In my opinion its a flaw that there is no .datepicker('clear') option.