php如何将数据库里面的时间格式化

来源:互联网 发布:马克杰克逊数据 编辑:程序博客网 时间:2024/06/05 13:33

date("Y年n月j日",strtotime($row['WelcomeUpdateTime']));

 

string date ( string$format    [, int$timestamp   ] )

格式化一个本地时间/日期

 

intstrtotime    ( string $time   [, int $now  ] )

strtotime将任何英文文本的日期时间描述解析为 Unix 时间戳