Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jennifer Tenney on May 11, 2009 14:04
open dhtmlx forum
RE: setting the date in a simple calendar

Unfortunatly the solution you provided the same results as I have been getting... I still have 3 calendars for the month of May. I tried your solution which was the following:

There are no public methods to do that. But you can try to use the following approach:

miniPastCal = new dhtmlxCalendarObject('mini_cal_past');
miniPastCal.setDate (new Date(0));
miniPastCal.date.setMonth((new Date()).getMonth()-1);
miniPastCal.date.setFullYear((new Date()).getFullYear());
miniPastCal.draw();

miniNextCal = new dhtmlxCalendarObject('mini_cal_next');
miniNextCal.setDate (new Date(0));
miniNextCal.date.setMonth((new Date()).getMonth()+1);
miniNextCal.date.setFullYear((new Date()).getFullYear());
miniNextCal.draw();


Any ideas where I go from here?

Thanks,

Jen
Answer posted by Alex (support) on May 12, 2009 00:54
Please, check attached sample - it demonstrates the soultion provided in the previous answer
Attachments (1)