Parsing Twitter API Datestamp

后端 未结 6 792
后悔当初
后悔当初 2020-12-04 22:33

I\'m using the twitter API to return a list of status updates and the times they were created. It\'s returning the creation date in the following format:

6条回答
  •  囚心锁ツ
    2020-12-04 23:00

    strtotime("dateString"); gets it into the native PHP date format, then you can work with the date() function to get it printed out how you'd like it.

提交回复
热议问题