I'm struggling with changing the date-range format from: mm-dd-yyyy to yyyy-mm-dd in the following variable script. The code works fine as it is below but the moment I try and change the format of the date to what I need (yyy-mm-dd) it breaks and doesn't work.
Has anyone got any idea where I'm going wrong?
Many thanks
// Enable a range of dates
var disabledDaysRange = [["4-4-2013 to 4-6-2013", "4-14-2013 to 4-18-2013", "5-2-2013 to 5-22-2013"], '5-29-2013'];
function disableRangeOfDays(d) {
for(var i = 0; i < disabledDaysRange.length; i++) {