Retrieving week range from calendar

I have created a dhtmlx calendar object. Please tell me that how can get start date of current week.


Hello,


you can try to use the following approach:


var shift = scheduler._date.getDay();


var currect_week_start = scheduler.date.add(scheduler._date,1-shift,“day”);