开发者

how to use formatdate

开发者 https://www.devze.com 2023-02-06 11:06 出处:网络
i found this in full calendar documentation: $.fullCalendar.formatDate( date, formatString [, options ] ) -> String

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

精彩评论

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