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 :)
Try this:
var myFormattedDate = $.fullCalendar.formatDate(myDate, "dd-MM-yyyy");
Format of 'formatString' outlined @ http://arshaw.com/fullcalendar/docs/utilities/formatDate/.
精彩评论