You must read the docs first moment.js. And you can format the date using the following code:event.start.format("dddd");
Implementation:
eventDrop : function(event, delta, revertFunc, jsEvent, ui, view)
{
var day = event.start.format("dddd");
if(day == "Sunday")
{
alert("You can not move this event to sunday.");
revertFunc();
} else {
}
}
Note: you do not install the function correctly revertFunc, try the above format.
source
share