PHP截取日期

date( 'Y-m-d ',strtotime('2017-10-9 12:23:35'))

 通过时间格式,获取的是2017-10-9

posted on 2017-10-11 10:17  一曲笙箫  阅读(1814)  评论(0编辑  收藏  举报