Reputation: 23
i found this in full calendar documentation:
$.fullCalendar.formatDate( date, formatString [, options ] ) -> String
the format i want my date in is dd-MM-yyyy
.
can someone tell me how to correctly write this piece of code?
thanks :)
Upvotes: 2
Views: 1206
Reputation: 3078
Try this:
var myFormattedDate = $.fullCalendar.formatDate(myDate, "dd-MM-yyyy");
Upvotes: 1
Reputation: 1448
Format of 'formatString' outlined @ http://arshaw.com/fullcalendar/docs/utilities/formatDate/.
Upvotes: 0