$('#thedate,#dateid').datepicker({ changeMonth:true, changeYear:true, yearRange:"-100:+0", dateFormat:"dd/mm/yy" , maxDate: '0', }); });