Well, that second selector is wrong to start with... shouldn't it be $ ("#start") and not $(start) ?
On Jan 14, 9:24 am, "graphic...@googlemail.com" <graphic...@googlemail.com> wrote: > Hi, > > This setDate is driving me mad ! I can't set the date of the controls > programatically. > > //create range datepickers > $("#start , #end").datepicker({ > showOn: "button", > buttonImage: "images/calendar.gif", > buttonImageOnly: true, > beforeShow: customRange, > hideIfNoPrevNext: true, > showStatus: true, > duration: "", > dateFormat: "dd MM yy" > }).attr("readonly", "readonly"); > > $(start).datepicker("setDate", "10 Mar 2008"); > > displays non-sense date such as 14 august 2014.... > > Is there something I'm doing wrong ? > > Thanks