convert mysql timestamp into actual date and time?

后端 未结 3 2124
我在风中等你
我在风中等你 2020-12-24 01:48

I have dates stored in a mysql table, they are set to store as CURRENT TIMESTAMP in each row and are stored as follows:

2010-05-29 01:17:35

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-24 02:13

    echo date('M j Y g:i A', strtotime('2010-05-29 01:17:35'));
    

    http://php.net/manual/en/function.date.php

提交回复
热议问题