sandy1028 Posted October 12, 2007 Share Posted October 12, 2007 <SCRIPT LANGUAGE="JavaScript"> var cal = new CalendarPopup(); var currentTime = new Date(); var month = currentTime.getMonth() + 1; var day = currentTime.getDate(); var year = currentTime.getFullYear(); //Disables the todays and previous days dates cal.addDisabledDates(year+"-"+month+"-"+day); cal.addDisabledDates(year+"-"+month+"-"+(day-1)); How to disable the dates from next day till the end of the month in calender Quote Link to comment Share on other sites More sharing options...
fenway Posted October 12, 2007 Share Posted October 12, 2007 I take it you didn't write these functions... I guess you could do it with a loop, but it sounds like it would make more sense to start them off disabled. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.