如题,把如 2013-6-12 12:00 格式化为 2013-6--12可以先将时间转换下,然后重新将时间格式化显示:echo date("Y-m-d", strtotime($newsArr['news_time']));