I tried parseInt(inst.selectedDay)+3 in the new date like: $('#startdate').datepicker('option','maxDate' , new Date (inst.selectedYear, inst.selectedMonth,parseInt(inst.selectedDay)+3));
and $('#startdate').datepicker('option','maxDate' , new Date (inst.selectedYear, inst.selectedMonth,Int(inst.selectedDay)+3)); and $('#startdate').datepicker('option','maxDate' , new Date (inst.selectedYear, inst.selectedMonth,(inst.selectedDay)+3)); and nothing works it gives mi 9 of september 2010 so it doesnt help me... or am i doing it wrong ? Greetings, Aljaž -- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.