PHP Date to iCal date format for DTSTART

后端 未结 3 1331
北恋
北恋 2021-02-13 22:10

Is there an easy way to get the correct format for an iCal DTSTART using php date?

I need the format to look like: 20111008T110000 or 20111008 (that one is easy) if I do

3条回答
  •  心在旅途
    2021-02-13 22:49

    This is might be you are looking for link and this also can help you.

    mktime function to make timestamp as you want including time or only date to it.

提交回复
热议问题