平时常用的日期格式转化date('Y-m-d H:i:s');
月:m带0,n不带0
日:d带0,j不带0
eg:假设当前时间为2018-07-30
date('Y-m-d'); // 2018-07-30
date('Y-n-j'); // 2018-7-30
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!