As you can see in the screenshot of Firebug below the data coming in (from an Ajax-request to a PHP-page is a straightforward date as a string. And this string is successfully converted to a Date-object. But this always ends with a datePicker that states that the maxDate is an invalid Date. And therefore the maxDate does not do its trick.