I have a system with a datepicker, and I want some dates to be disabled automatically. These dates should automatically populate the array that disables the dates. (Today is manual as the function below shows)
var disableddates = ["10-12-2015", "11-20-2015", "12-21-2015", "12-22-2015", "12-23-2015", "12-24-2015", "12-25-2015", "12-28-2015", "12-29-2015", "12-30-2015", "12-31-2015", "1-1-2016"];
I have a SQL Server procedure that lists all those dates. How do I call it before calling the datepicker by disabling those dates?