Use the function date () to implement the displayed in the format: year-month-day hours: minutes: secRelated Time parameters:A-"AM" or "PM"A-"AM" or "PM"D-A few days, two digits, if less than two digits before the 0; such as: "01" to "31"D-Days of
Use php to obtain the code for this week, last week, this month, last month, and this quarter. Copy the code as follows: echodate (Ymd, strtotime (now), n; echodate (Ymd, strtotime (-1 weekMonday), n; echodate (Ymd, strtotime (-1 weekSunday), n;
Use php to obtain the echodate (Ymd, strtotime (now), n ;?? Echodate (Ymd, strtotime (-1 weekMonday), n ;?? Echodate (Ymd, strtotime (-1 weekSunday), n; get this week, last week, this month, last month, this quarter date with php (abstract)
Echo
Use php to obtain the echodate ("Ymd", strtotime ("now"), and "\ n ";?? Echodate ("Ymd", strtotime ("-1 weekMonday"), "\ n ";?? Echod uses php to obtain this week, last week, this month, last month, and this quarter date (abstract)
Echo date ("Ymd"
Use php to obtain the echodate (Ymd, strtotime (now), n ;?? Echodate (Ymd, strtotime (-1 weekMonday), n ;?? Echodate (Ymd, strtotime (-1 weekSunday), obtained this week, last week, this month, last month, and this quarter date using php (abstract)
This article describes how to use the date and strtotime functions of php to output the specified date. The example summarizes the methods used to generate various date formats, which is very useful. For more information, see
This article describes
This example describes how PHP uses the date and Strtotime functions to output the specified dates. Share to everyone for your reference. The specific methods are analyzed as follows:
The date and Strtotime functions in PHP are all for dates, but
PHP uses the date and Strtotime functions to output a specified date method, Datestrtotime
This example describes how PHP uses date and strtotime functions to output a specified date. Share to everyone for your reference. The specific methods are
Php date instance: get last week, this week, last month, this month, this quarter, last quarter
For example, php obtained last week, this week, last month, this month, this quarter, and the last quarter.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.