📜  日期时间到字符串 php 代码示例

📅  最后修改于: 2022-03-11 14:53:57.250000             🧑  作者: Mango

代码示例6
$old_date = date('l, F d y h:i:s');              // returns Saturday, January 30 10 02:06:34
$old_date_timestamp = strtotime($old_date);
$new_date = date('Y-m-d H:i:s', $old_date_timestamp);