1

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');
},

1 Answer 1

1

formatDate expectes a date, not an event:

var stDate = $.fullCalendar.formatDate(calEvent.start, 'MM-dd-yyyyy');
1
  • @Smith - this comment was added long before V2 came out (its still in beta, as of today)
    – kneidels
    Apr 30, 2014 at 13:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.