Categories | Question details Back To List | ||
dhtmlScheduler - get 1st and last day of month view Hi All, How would I get the 1st and last day dates of the month view? For instance, this month(December) Nov 29 is the first date shown and Jan 2 is the last day shown. How can I obtain those values? thanks, rod. Answer posted by Alex (support) on Dec 16, 2009 09:17 Hello, you can try to use the following approach: scheduler.attachEvent("onViewChange",function(view,date){ if(view=="month"){ alert("the first day is "+this._min_date); alert("the last day is "+this.date.add(this._max_date,-1,"day")); } } |