Not getting from scheduler


I have a doubt. I am trying to get the start and end dates of month view using the following API
var d =;
var e =;

I am getting the start date but the end date is not working. I am getting the following error:

TypeError: is not a function

Please help.

You can use

var end =, "1", "month");

Or just uset getState API … state.html
It provides the min_date and max_date parameters for the current view