fullcalender.formatdate not working

后端 未结 4 1715
长情又很酷
长情又很酷 2020-12-19 21:18

I am trying to integrate fullcalender to php mysql.I have used the following code.I want to format the date such it will come in format yyyy/mm/dd but when i use format stat

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-19 22:18

    The "DDTHH:mm" addition will fail on some versions - bets to leave it out and use a pure date format. Add the 'Z' to compensate for the time zone if you wish.

    select: function(start, end){
    
               var converted_start = moment(start).format('YYYY-MM-DD:HH:mm:ssZ');// the "Z" will adjust for time zone
               var converted_end = moment(end).format('YYYY-MM-DD:HH:mm:ssZ');
    
            },
    

提交回复
热议问题