clouring time interval for particular days

i need to apply a different color to certain time intervals of certain interval of dates of certain days only .

for eg:
28-06-2013 to 10-07-2013, days : monday and wednesday from time 10-12pm should be coloured.

how can this be done.

Hi,
check this article
docs.dhtmlx.com/doku.php?id=dhtm … edtimespan

please note that addMarkedTimespan do not support ‘days’ and “start_date”/“end_date” in the same config. So you’ll need to iterate date range manually and create marked timespans only for needed days

scheduler.addMarkedTimespan({
days: new Date(2012,6,27) ,
zones: [460, 860, 1260, 1560],
css: “blue_section”,

    });

this is the code im using but 27-6-2013 is not being shown in different color.However it works if I use- days: [0,1,2,3,4,5,6]

the css for blue section is:

    .blue_section {
        background-color: #2babf5;
        opacity: 0.27;
        filter: alpha(opacity = 27);
    }

scheduler.addMarkedTimespan({
days: new Date(2012,6,27) ,
zones: [460, 860, 1260, 1560],
css: “blue_section”,

});

this does not work , however if i use [0,1,2,3,4,5,6] it works .
how can i use it using dates?

Hi,

Make sure you’ve specified correct date. Month numbers in JavaScript date are zero-based, so “days: new Date(2012,6,27)” goes for 27th of July, not June. And the specified year is 2012.

Thanx !