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


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