Oh found out... the problem wasn't with the parseInt(inst.selectedDay)
+3 but i put it in the wrong one. So for others the right one was $
('#enddate').datepicker('option','maxDate' , new Date
(inst.selectedYear, inst.selectedMonth,parseInt(inst.selectedDay)
+3));On 27 dec., 22:11, Aljaz <[email protected]> wrote: > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.
