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.
The below javascript is giving me the start date of the month selected.
var month = $('#calendar').fullCalendar('getDate');
var f = month.format('YYYY-MM-01');
Ex - if i select Oct 2016
, it gives as 2016-10-01
I need to pass this info from vf page to controller and i need to add this in my SOQL filter.
SOQL -
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 .
Regards