MySQL queries a lot of ways, the following for you to introduce the MySQL query is to query this week, last week, this month, the last month's data, if you are interested in MySQL query, may wish to see.Query the current data todaySELECT
How can I get the timestamp of this week, last week, this month, last month, and end? how can I get the timestamp of this week, last week, this month, and last month? ------ solution -------------------- echo & nbsp; date (Ymd, strtotime (now), &
-- Added the weekly times of the month and year of the date!-- Sunday is counted as "last week "! (Note the differences between weekofyear, weekofmonth, myweekofyear, and myweekofmonth)-- Note that the datename value varies depending on the SQL
: This article mainly introduces PHP's collection of yesterday's timestamp, current time information array, last week and last week's year, last month and last month's year, if you are interested in the PHP Tutorial, refer.
/*** Get the current time
[Go to] obtain the first day of the current week, month, and quarter in MySQL on the last day. The last day of the current week, month, and quarter in MySQL is taken from: hideto. javaeye. comblog255816 the first day of the current week:
How can I get the timestamp of this week, last week, this month, last month, and end? how can I get the timestamp of this week, last week, this month, last month, start and end?
Reply to discussion (solution)
Echo date ("Ymd", strtotime ("now"),
How do I get the timestamp of this week, last week, this month, the beginning and the end of the month
How do I get the timestamp of this week, last week, this month, the beginning and the end of the month
------to solve the idea---------------------
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.