addMarkedTimespan with recursion?

As stated in this thread, I am now using addMarkedTimeSpan to show and block holidays. I know how to mark a timespan for a fixed date, but I can’t figure it out how to apply the marking on dates that I load from DB. I tried this, but it doesn’t work. Any suggestions?

var holidays = []; //contains dates in form of [{"day":"12","month":"3","year":"2013"},{"day":"23","month":"3","year":"2013"}]

for(i=0;i<holidays.length;i++){
  scheduler.addMarkedTimespan({
   days: new Date(parseInt(holidays[i].day), parseInt(holidays[i].month),  parseInt(holidays[i].year)),
   zones: "fullday",
   css: "holidays",
   type:  "dhx_time_block",
   html: "<b>Holidays</b>"
   });
}

Never mind, I placed “Date” parameters in the wrong order.
Rookie mistake. :blush: