Home » Javascript » jumping from one calender to another

jumping from one calender to another

Posted by: admin June 30, 2018 Leave a comment

Questions:

i need to fetch the date i click on but by this code i am only getting what the current date is. how can i get the date which i click on. i need to get any date which date i click on but i am unable to do that . i dont need the current date i need to fetch the date i click on

dayClick: function() {

  var date =  $('#calendar').fullCalendar('getDate'); 
  var dat = $.fullCalendar.formatDate( date,"YYYY-MM-DD" ); 

  alert(" the date is "+dat);
  $('#calendar1').fullCalendar('changeView', 'agendaDay', 'dat');
},
Answers: