Home > Backend Development > PHP Tutorial > PHP DATE 怎么取得当月的第一天和最后一天

PHP DATE 怎么取得当月的第一天和最后一天

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 12:29:06
Original
1076 people have browsed it

PHP DATE 如何取得当月的第一天和最后一天!

echo date('Y-m-01',time()).'----'.date('Y-m-t',time())


转载自:http://www.9958.pw/post/php_date

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Compare JavaScript Date objects
From 1970-01-01 08:00:00
0
0
0
Select rows grouped by date
From 1970-01-01 08:00:00
0
0
0
Hive query: Convert date timestamp to date format
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template