Home > Backend Development > PHP Tutorial > PHP 取现阶段月头跟月尾

PHP 取现阶段月头跟月尾

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 13:19:45
Original
789 people have browsed it

PHP 取当前月头跟月尾

?

月头:

$monthstart = date('Y.m.d', mktime(0, 0, 0, date('m'), 1, date('Y')));

?

?

月尾:

$monthend = date('Y.m.d', mktime(0, 0, 0, date('m')+1, 0, date('Y')));

?

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