fullcalender.formatdate not working

后端 未结 4 1698
长情又很酷
长情又很酷 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:16

    this code below should do the trick. (assuming you have the moment.min.js lib)

            start=moment(start).format('YYYY-MM-DDTHH:mm:ssZ'); 
            end=moment(end).format('YYYY-MM-DDTHH:mm:ssZ'); 
    

提交回复
热议问题