Reputation: 51
I am trying to use formatDate
with the event object from eventMouseOver
and can't seem to get it to work.
Any suggestions?
Here is my code:
eventMouseover: function(calEvent, jsEvent, view) {
var stDate = $.fullCalendar.formatDate(calEvent, "MM-dd-yyyyy");
tooltip.show('test tooltip');
},
Upvotes: 1
Views: 4504
Reputation: 26730
formatDate
expectes a date, not an event:
var stDate = $.fullCalendar.formatDate(calEvent.start, 'MM-dd-yyyyy');
Upvotes: 1