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 Link to comment https://forums.phpfreaks.com/topic/72903-disable-date/ 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. Link to comment https://forums.phpfreaks.com/topic/72903-disable-date/#findComment-367841 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.