Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Vineetha on Nov 30, 2009 00:12
open dhtmlx forum
using mini calendar to retrieve events

Hi

I have asked the question of adding a separate calendar on dhtmlscheduler. As per your answer i have added the calendar and on day selection i tried to retrieve the events using the method you said .it is

var events=scheduler.getEvents(Date(givenDate),Date(givenDate));

But this method is retrieving null. Is it because of the date format's problem ? Please tell me in which format i have to give the date into the scheduler.

Thank You
Vineetha
Answer posted by Alex (support) on Nov 30, 2009 01:12

Hello,

the example is 

var evs = scheduler.getEvents(new Date(2009,10,10),new Date(2009,12,25));

for (var i=0; i<evs.length; i++)
    alert(evs[i].text);