With the documentation of fullcalendar
I have taken the following function:
eventResize: function(event, delta, revertFunc)
{
var id = event.id;
var fi = event.start.format();
var ff = event.end.format();
var titulo = event.title;
}
This function helps me to extend the date or event to the desired date, the problem is that I can not find a way to validate, if the final date is greater than 7 days from the initial date that an error appears .
I tried:
if(ff > 7)
{
alert("No puede sobre pasar los 7 dias");
}
y esto
var fecha_de_validacion = moment.format('YYYY-MM-DD' + (parseInt(7)));
but it does not work