We work in SharePoint Designer 2013, all the necessary files for working with this library were connected:

-fullcalendar.min.css -jquery-ui.min.css -jquery.SPServices-2014.02.min.js -moment.js -fullcalendar.js -locale-all.js ΠΈ js-Ρ„Π°ΠΉΠ» ΠΈΠ½ΠΈΡ†ΠΈΠ°Π»ΠΈΠ·Π°Ρ†ΠΈΠΈ (The Full Code), взятый со странички (https://joshmccarty.com/2011/11/sharepoint-jquery-and-fullcalendar-now-with-spservices/) 

When you open a page with a calendar, only its upper part opens with the visualization control buttons (day, month, week, privious, next). Clicking the privious button or next - the calendar unfolds in full view, as it should work initially. Also for each click in the console error is returned:

Uncaught TypeError: $.fullCalendar.formatDate is not a function at Calendar_constructor.events (fullcodecalendar.js:84) at _fetchEventSource (fullcalendar.js:11692) at tryFetchEventSource (fullcalendar.js:11602) at fetchEventSources (fullcalendar.js:11585) at refetchEvents (fullcalendar.js:11549) at fetchEvents (fullcalendar.js:11543) at Calendar_constructor.requestEvents (fullcalendar.js:11485) at members.constructor.requestEvents (fullcalendar.js:9061) at members.constructor.bindEvents (fullcalendar.js:8866) at fullcalendar.js:8436 assume that the answer lies somewhere on the surface, but I still cannot catch it. If someone faced a similar problem or had the need to connect this library to the system on SharePoint, I will be very grateful for the feedback! Thank!

    1 answer 1

    Tell fullcalendar.js which version of fullcalendar.js you are using. The formatDate method was available before v2.0. You can view the list of changes here .

    Those. instead

     $.fullCalendar.formatDate(date, 'yyyy-MM-dd'); 

    nessesary to use

     moment(date, 'DD.MM.YYYY').format('YYYY-MM-DD'); 

    where DD.MM.YYYY is the current date format, and format('YYYY-MM-DD') sets the target date format.