Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Dicanio's avatar

FullCalendar change date format?

Hello, I created my 1st calendar following this guide https://www.youtube.com/watch?v=jXxVosAaT9A&list=PLRheCL1cXHrv961g0sQ69qqJOYJtg6gjH It seems to be based on MaddHatter fullcalendar, everything works, but how can i change date time from 1-12am/pm to 1-24? Im displaying calendar with $('#calendar').fullCalendar({!! $calendar->getOptionsJson() !!}); How can I pass argument to change it or find config file?

0 likes
2 replies
bobbybouwmann's avatar

You can probably just use the Laravel way of changing this

class EventModel extends Eloquent implements \MaddHatter\LaravelFullcalendar\Event
{
    protected $dates = ['start', 'end'];

    protected $dateFormat = 'm-d-Y';
    
    // The rest of your model
}

Note: I never tried the package, but I understand the framework ;)

Please or to participate in this conversation.