I am using jquery fullcalendar to display records in calendar view. Currently i have a scenario where i am selecting months from vf page and i need to fetch records from controller for the selected month only.
var month = $('#calendar').fullCalendar('getDate'); var f = month.format('YYYY-MM-01');
Ex - if i select
Oct 2016, it gives as
I need to pass this info from vf page to controller and i need to add this in my SOQL filter.
eventList = [select Id, Name, Start_Date__c, End_Date__c from ABC__c ];
In ABC__c object i have startdate & enddate as Date field which can be any date.
How to fit the selected month from vf page to this SOQL .