2012-07-04 18 views

cevap

3

...

:

function getLastDayOfYearAndMonth(year, month) 
{ 
    return(new Date((new Date(year, month + 1, 1)) - 1)).getDate(); 
} 

Kontrol tarihi geçen ay gün ise beforeShowDay olayla:

$('.selector').datepicker(
{ 
    beforeShowDay: function(date) 
    { 
     // getDate() returns the day [ 0 to 31 ] 
     if (date.getDate() == 
      getLastDayOfYearAndMonth(date.getFullYear(), date.getMonth())) 
     { 
      return [true, '']; 
     } 

     return [false, '']; 
    } 
}); 
+0

Çok teşekkür ederim! – XTN

+0

Bu mükemmel çalıştı! Teşekkürler – ScottyG