Change Initial Month

Create issue
Issue #23 new
Mohammad Walid created an issue

It's possible to set initial month via time attribute, but I cannot find any documentation about how to change that month after initialize.

Comments (1)

  1. David

    You can, you need to run a variable with the date, and initialize it like the initial date. Ex:

    $(document).ready(function () {
              var today = new Date();
              var date = today.getFullYear()+'-'+(today.getMonth()+1);
    
    $(".responsive-calendar").responsiveCalendar({
                time: date,
                onActiveDayClick: function(events){
                    alert('Hola');
                },
                events: { 
                    fulldate:{"number": 1}, 
                    "2017-06-21": {"number": 8}
                }
            });
          });
    
  2. Log in to comment