2

Now the default date is 2017-12-12...

$(document).ready(function() {

    $('#calendar').fullCalendar({
      header: {
        left: 'prev,next today',
        center: 'title',
        right: 'month,agendaWeek,agendaDay,listWeek'
      },


      defaultDate: '2017-12-12',
      navLinks: true, // can click day/week names to navigate views
      businessHours: true, // display business hours
      editable: true,
      eventLimit: true, // allow "more" link when too many events
Alive to die - Anant
  • 70,531
  • 10
  • 51
  • 98
Seonbae
  • 23
  • 1
  • 3

2 Answers2

0
$('#calendar').fullCalendar({
    defaultDate: new Date()
});

or

$('#calendar').fullCalendar({
    defaultDate: moment('2014-09-01'),
    ...
});
Ghostman
  • 6,042
  • 9
  • 34
  • 53
-2

you can directly set today as default in this script

$("#calendar").datepicker().datepicker("setDate", new Date());
jasinth premkumar
  • 1,430
  • 1
  • 12
  • 22