$(document).ready(function () { $.get("/General/GetCalendar", function (arrayList) { var schoolEvens = []; $.each(arrayList, function (value) { var dateAsFromServerSide_start = arrayList[value].start ///Date(1291374337981)/ var start_Date = new Date(parseInt(dateAsFromServerSide_start.substr(6))); var dateAsFromServerSide_end = arrayList[value].end ///Date(1291374337981)/ var end_Date = new Date(parseInt(dateAsFromServerSide_end.substr(6))); schoolEvens = [{ id: arrayList[value].id, title: arrayList[value].name, start: start_Date, end: end_Date, allDay: true }]; }) $('#calendar').fullCalendar({ header: { left: 'prev,next today', center: 'title', right: 'month,basicWeek,basicDay' }, editable: true, allDaySlot: false, selectable: true, events: schoolEvens }) }) });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)