I have my list of events, which have a start and end date (format YYYY-MM-DD). These events are displayed in the FullCalendar calendar:
However the dates are not shown in full, but the end date of each event does not take the last day, for example, the event "BIRTHDAY" (green) has a duration from Wednesday 1 until Saturday 4 , however on Saturday 4 it does not include it. What I'm looking for is to include these dates of events, something like this:
This is the javascript that shows the event in the calendar:
$(document).ready(function()
{
// page is now ready, initialize the calendar...
$('#calendar').fullCalendar(
{
locale: 'es',
header:
{
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
editable: false,
events: [
@foreach($eventos as $evento)
{
title: "{!! $evento->Nombre !!}",
start: "{!! $evento->FechaDesde !!}",
end: "{!! $evento->FechaHasta !!}",
url: "{!! url("abm_acciones/mostrarevento/".$evento->CD_Evento) !!}",
allDay: true
},
@endforeach
]
});
});
Thank you!