jQueryUI Datepicker documentation states that the minDate option can be set using \"a string in the current dateFormat\". So I\'ve tried the following to initialize datepick
In the end I had to use something like this, since the v1.7 datepicker has no probs with Dates:
$.getJSON("/GetMinMaxDates/", function(dates) {
var DateLimits = {min:null, max:null};
DateLimits.min = new Date(Date.parse(dates.min));
DateLimits.max = new Date(Date.parse(dates.max));
$("input.date").datepicker({ dateFormat: "mm/dd/yy", minDate: DateLimits.min, maxDate: DateLimits.max });
});