Get currently selected date

Hey,

Sorry for the basic question, but I couldn’t find this anywhere in the API or other documentation. How do you get the current date (day) being viewed in the Scheduler?

I am attempting to generate a detailed report of the events taking place on that day that can be printed when someone clicks a button. Generating the report isn’t the problem, find out how to get the currently selected date in a format such as ‘2010-12-31’ is.

Thanks for any help,
Mike

Current date can be taken as

scheduler._date

to get it in more printable way

scheduler.templates.xml_format(scheduler._date);

or you can create your own formatting method
docs.dhtmlx.com/doku.php?id=dhtm … te_formats