0
可能重复:
convert any date string to timestamp without timezone字符串到PHP时间戳
我有一个字符串,它看起来像这样,想一个PHP时间戳格式。 我可以要求客户端在必要时更改字符串的格式。
2010/08/11 6时33分00秒
可能重复:
convert any date string to timestamp without timezone字符串到PHP时间戳
我有一个字符串,它看起来像这样,想一个PHP时间戳格式。 我可以要求客户端在必要时更改字符串的格式。
2010/08/11 6时33分00秒
使用的strtotime:
$date = date('Y/m/d H:i:s', strtotime('2010/08/11 06:33:00'));