$("#datepicker").datepicker({minDate : new Date(2012,0,1),maxDate : new Date(2012,11,31), firstDay: 1