tracy
tracy

Reputation: 51

How to use fullCalendar.formatDate with event object?

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

Answers (1)

Niko
Niko

Reputation: 26730

formatDate expectes a date, not an event:

var stDate = $.fullCalendar.formatDate(calEvent.start, 'MM-dd-yyyyy');

Upvotes: 1

Related Questions