Add One Day To date

Posted 4 months ago by kshitizmittal
$events[] = Calendar::event(
                    (@$activity->leavetypes->type_name ? @$activity->leavetypes->type_name : 'N/A'),
                    new \DateTime($activity->start_date),
                    new \DateTime($activity->end_date),
                        'color' => '#85e085',
                        'textColor' => '#008000',

I have to add 1 Day to end date because I need to counter a bug in fullcalendar which shows -1 day event length please help me.

Please sign in or create an account to participate in this conversation.