FullCalendar,如何更改日期格式? [英] FullCalendar, how do I change the date format?
问题描述
我试图使FullCalendar的日期格式为dd / mm。我怎样才能做到这一点?我发现[这] [1]方法,但我不确定如何编辑它在我的情况。我试图这样做,以便在dayView中,标题以dd / mm格式显示日期,而不是当前的mm / dd美式格式。
是可能做到这一点?
查看此链接
< a href =http://arshaw.com/fullcalendar/docs/text/titleFormat/ =nofollow> http://arshaw.com/fullcalendar/docs/text/titleFormat/
你可以指定你想要编辑哪个视图(在你的情况下是日视图)
http://arshaw.com/fullcalendar/docs/views/View_Option_Hash/
所以你可能会有一些类似于 $ b
titleFormat:{
day:'dddd,d MMM,yyyy'//无论您想要的日期格式如何
}
I am trying to make the date format of FullCalendar dd/mm. How can I do this? I found [this][1] method, but I am not really sure how to edit it in my case. I am trying to make it so that in the dayView, the header shows the date in dd/mm format, rather than the current mm/dd American format.
Is it possible to do this?
Check out this link
http://arshaw.com/fullcalendar/docs/text/titleFormat/
You can specify which view you want to edit through this (in your case the day view)
http://arshaw.com/fullcalendar/docs/views/View_Option_Hash/
So you would probably have something along the lines of
titleFormat: {
day: 'dddd, d MMM, yyyy' //whatever date format you want here
}
这篇关于FullCalendar,如何更改日期格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!