Hi,
is there a meaning to get the dates of what is shown on the scheduler.
for example in week view : get the first day show in the week and the last day show in the week.
thx a lot.
Yannick
Hi,
is there a meaning to get the dates of what is shown on the scheduler.
for example in week view : get the first day show in the week and the last day show in the week.
thx a lot.
Yannick
Hello,
var week_start = scheduler.date.week_start(scheduler._date)
var week_end = scheduler.date.add(week_start, 7, "day")
Best regards,
Ilya
Does this work with a param that say which day begin the week ?
there is a difference between french week and anglo-saxon week, the week does not start the same day, isn’t it ?
Hello,
scheduler.date.week_start does take into account scheduler.config.start_on_monday setting.
As another option you can simply use getState() function.
In such case for ‘week’ mode:
var week_start = scheduler.getState().min_date;
var week_end = scheduler.getState().max_date;
Best regards,
Ilya