Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Nov 09, 2009 23:19
open dhtmlx forum
Retrieving week range from calendar

I have created a dhtmlx calendar object. Please tell me that how can get start date of current week.
Answer posted by Alex (support) on Nov 10, 2009 02:49

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");