Blogger Information
Blog 7
fans 0
comment 2
visits 17124
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
回顾php基础知识——date('Y-n-j')
gu陈
Original
2336 people have browsed it

平时常用的日期格式转化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!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post