日期转换为时间戳 $date="2013-10-01 12:23:14"; dump(strtotime($date)); //=>1380601394 时间戳 转换为日期 {$date|date="y-m-d",###} //=>2013-10-01 去除时间的时分秒:{$vo.update_time|substr=###,0,10} 转载于:https://www.cnblogs.com/qinglin/p/8676112.html