How to find monthview or week view or day view in full calendar
var view = $('#calendar').fullCalendar('getView');
if (view.name == 'month') {
}
var view = $('#calendar').fullCalendar('getView');
if (view.name == 'month') {
}