代码示例:(标识:demo_php_date5)
<!DOCTYPE html>
<html>
<body>

<?php
$d=strtotime("10:38pm April 15 2015");
echo "创建日期 " . date("Y-m-d h:i:sa", $d);
?>

</body>
</html>
运行结果: