Is it possible to gray out certain days from data what comes from mysql database in Date Picker?

Is it possible to gray out certain days from data what comes from mysql database in Date Picker?

Is it possible to gray out certain days in certain months with the down code! This information in the code is already coming from a database. At the moment it gives a popup that the date is not available. But looking to gray out the dates what are not available.

Information from Mysql Database

     
  1. days[0] = "1"; days[1] = "0"; days[2] = "0"; days[3] = "1"; days[4] = "0"; days[5] = "1"; days[6] = "0"; var mon = new Array(12); mon[0] = "0"; mon[1] = "0"; mon[2] = "0"; mon[3] = "1"; mon[4] = "1"; mon[5] = "1"; mon[6] = "1"; mon[7] = "1"; mon[8] = "1"; mon[9] = "1"; mon[10] = "0"; mon[11] = "0";



  1. <script><!-- if ($.browser.msie && $.browser.version == 6) {  $('.date, .datetime, .time').bgIframe(); }  $('.date').datepicker({ minDate: 0 }); $(".ui-datepicker-today span").addClass("ui-state-hover") $('.date').datepicker({dateFormat: 'yy-mm-dd'}); $('.datetime').datetimepicker({  dateFormat: 'yy-mm-dd',  timeFormat: 'h:m' }); $('.time').timepicker({timeFormat: 'h:m'}); //--></script>  <script type="text/javascript"> function validateDate(seldate) {  var message = "";   var type = new Array('0');  var days = new Array(7);  days[0] = "1";  days[1] = "0";  days[2] = "0";  days[3] = "1";  days[4] = "0";  days[5] = "1";  days[6] = "0";   var mon = new Array(12);  mon[0] = "0";  mon[1] = "0";  mon[2] = "0";  mon[3] = "1";  mon[4] = "1";  mon[5] = "1";  mon[6] = "1";  mon[7] = "1";  mon[8] = "1";  mon[9] = "1";  mon[10] = "0";  mon[11] = "0";   date_start = new Date('0000-00-00');  date_end = new Date('0000-00-00');   if(type==0){   selected_date=new Date(seldate);   if( days[selected_date.getMonth()] == 0 || days[selected_date.getDay()] == 0 || (date_start <= selected_date && selected_date <= date_end) )  {   message += "dit is een test";  }  }    if(message != ""){  document.getElementById('datefield').value="";  alert( message );  } } </script>