Thanks a lot for your answer, that works perfectly :) , i have just an other question, when i use :
var d = new Date();
var curr_date = d.getDate();
to get back the current date, datapicker is restricted from 8th october or we are the 4th october, have you an idea of the problem ?