I am using full calendar. here my question is how to find the fullcalendar is in month view, week view or day view in format when clicking prev button or next button clicking function. here am calling custom code for next and prev buttons. because using this I want to fire some custom data. based on fullcalendar view.
$(document).on('click', '.fc-button-next a span', function () {
here I want to find the view of full calendar which is in month or week or day
var abc = $("#calendar").fullCalendar('getView').start.toString();
var MonthVal = getMonthValue(abc);
var YearVal = getYearValue(abc);
$('#calendar').fullCalendar('destroy');
dataString = "{ID:" + MonthVal + "," + "year:" + YearVal + "}";
DisplayCalendarForMonth(dataString, MonthVal, YearVal);
});
$(document).on('click', '.fc-button-today a span', function () {
here I want to find the view of full calendar which is in month or week or day
$('#calendar').fullCalendar('destroy');
DisplayCalendar();
});