I am showing the month view in the Full Calendar. When i click a day in the month view it should display the Day/Agenda View for that particular day.
Below is the code - But it shows the present days agenda view instead the one clicked.
dayClick: function(date, allDay, jsEvent, view) {
if (allDay) {
// Clicked on the entire day
$('#calendar')
.fullCalendar('changeView', 'agendaDay'/* or 'basicDay' */)
.fullCalendar('gotoDate', date.getFullYear(), date.getMonth(), date.getDate());
}
},