String date current date/time?

后端 未结 6 1547
北恋
北恋 2021-02-19 00:51

I am using $date = date(\"D M d, Y G:i\");.

When I echo $date, it shows the correct date/time. Now I need this as an string.

I have tr

6条回答
  •  -上瘾入骨i
    2021-02-19 01:19

    You're already getting a string. $date can be used like any string now.

    strtotime() actually gives you the number of seconds in time like unix

提交回复
热议问题