date( 'Y-m-d ',strtotime('2017-10-9 12:23:35')) 通过时间格式,获取的是2017-10-9 转载于:https://www.cnblogs.com/clm960227/p/7649251.html