I know how to disable past dates in yui3 calender but how can I disable specific dates ?
Should I specify rules for that ? their documentation is not very clear I can't understand the syntax they written for defining rules. If defining a rule is solution then how can I define one to disable specific date ?
ex : 25-12-2015
Indeed rules are a good way to disable specific dates, you can achive that like that:
Since you most likely will have an array of dates you want to disable, you may use this helper function to convert your array to rules.
Here's a fiddle for that https://jsfiddle.net/fxaeberhard/5e1b8ay9/6/