开发者

how to use formatdate

i found this in full calendar documentation:

$.fullCalendar.formatDate( date, formatString [, options ] ) -> String

the format i want my date in is dd-MM-yyyy.

开发者_Python百科

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/.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜