ajaxToolkit:CalendarExtender

Aug 17, 2010 at 9:10 AM

Hi All ,

I need to disable Sundays in My CalendarExtender .How can i do that one  I used below code.

function checkdate(txt) {    

   var txt = document.getElementById("ctl00_ContentPlaceHolder1_txtDob").value;    

   alert(txt);        var selectedDate = new Date(txt.value);  

     alert(selectedDate);        var today = new Date(); 

       today.setHours(0, 0, 0, 0);

        if (selectedDate < today) {    

       alert('Select today or a date bigger than that!'); 

           txt.value = '';        }  

 }

 

 

but this is not working

Help me