jQuery(function() { var todayDate = moment().startOf('day'); var YM = todayDate.format('YYYY-MM'); var YESTERDAY = todayDate.clone().subtract(1, 'day').format('YYYY-MM-DD'); var TODAY = todayDate.format('YYYY-MM-DD'); var TOMORROW = todayDate.clone().add(1, 'day').format('YYYY-MM-DD'); jQuery('#calendar').fullCalendar({ header: { left: 'title', right: 'prev,next today' }, locale: '', navLinks: false, events: 'http://www.animaweb.org/form/calendar.php?language=', eventRender: function(event, element) { element.qtip({ content: event.description }); } }); });