如何将“Y/m/d h:i A”格式的日期和时间转换为时间戳


How to convert "Y/m/d h:i A" format date and time to timestamp

如何将2016/02/12 09:00 PM格式的日期和时间转换为Unix时间戳。提前致谢

您是否尝试过strtotime()函数。

在这里详细看看: http://php.net/manual/en/function.strtotime.php