Marktimespan problem with date filtering

I am applying this for marking some dates with range below

var options={
start_date:new Date(2004,4,3),
end_date:new Date(today) ,
zones: “fullday”,
css: “red_section”,
type: “dhx_time_block” //the hardcoded val
};
scheduler.addMarkedTimespan(options);

or simply

scheduler.markTimespan({
start_date:new ;Date(2004,4,3),
end_date:new Date(ddd)
zones:“fullday”,
css:;“red_section”,
type:“dhx_time_block”
});

But i can only see the markings on the week that is loaded with scheduler initialization i.e current date week.
But if i move to previous weeks or dates.
I can’t see my markings, Even when i come back to my current week which was fine before. The markings are also went off there.

Any help please?

Hi,

I created a snippet with your configurations of addMarkedTimespan() method, please check that everything works correctly: https://snippet.dhtmlx.com/b2567b261

Many thanks for it…