You can attach OnDateSelected client event and cancel the event based on the date selected.
date = args.get_renderDay().get_date();
//gets the selected date
//check for the condition and cancel the event.
Also take a look in to the following help article for more on this.