What’s the problem in my code?
Cannot read properties of undefined (reading ‘formatDate’)
editable:true,
eventResize:function(event)
{
console.log(event.start);
var start = $.fullCalendar.formatDate(event.start, "YYYY-MM-DD HH:mm:ss");
var end = $.fullCalendar.formatDate(event.end, "YYYY-MM-DD HH:mm:ss");
var title = event.title;
var id = event.id;
$.ajax({
url:"../Components/calendar/update.php",
type:"POST",
data:{title:title, start:start, end:end, id:id},
success:function(){
calendar.fullCalendar('refetchEvents');
alert('Event Update');
}
})
}
Console.log of event.start
2
Answers
this is old version
Solution:
When You select the start and end date on full calendar use following code as well: