Set "today" as default date when init scheduler

Hello,

I have installed the demo of your scheduler and it works well!

Now, when I initialize the timeline I see a fixed date and when I press “today” I can see the schedules of today. That works but I want to initialize always with today’s date.

Right now I have for example:

scheduler.init('scheduler_here',new Date(2012,8,19),"timeline");

How do I put this on “today”?

Thank you,
Reg

1 Like

try this before you call init():

scheduler.date.week_start = scheduler.date.day_start;

Hello,

Use following:

scheduler.init('scheduler_here',new Date(),"timeline");

Best regards,
Ilya

Dear Ilya, great, that works! Thank you, R