Get currently selected date


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,

Current date can be taken as


to get it in more printable way


or you can create your own formatting method … te_formats