【发布时间】:2015-02-08 07:44:18
【问题描述】:
我有一个 $_POST 数组数据字段,其中包含 mm-dd-YYYY 格式的日期,如下所示:
$_POST['submission_date'] => 12-15-2014 //I get this after I did print_r($_POST);
现在我尝试使用 strtotime() 执行以下代码,但它没有返回任何内容。为什么?
echo "Submission Date ".strtotime($_POST['submission_date']);
请帮帮我。
谢谢。
【问题讨论】:
-
回显的输出是什么??
-
@sgt:显示为空白。
-
你能在它周围添加其他代码吗??
-
你的意思是它甚至不打印
Submission date? -
你想要的输出是什么?
标签: php date timestamp strtotime