PHP Date - How to add a string to separate date and time

后端 未结 5 1199
我寻月下人不归
我寻月下人不归 2021-01-13 01:19

I want to display date and time format something like this \"May 23 at 12:30pm\". I saw in PHP manual and found:

// Prints something like: Monda         


        
5条回答
  •  北荒
    北荒 (楼主)
    2021-01-13 01:30

    You need to escape the t too:

    echo date('M j \a\t h:i a');
    

提交回复
热议问题