Home > Database > Mysql Tutorial > How to get the date of the last day of the month in MySQL

How to get the date of the last day of the month in MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2023-06-03 14:33:37
forward
1333 people have browsed it

LAST_DAY(date): Get the date of the last day of the month on date

SELECT LAST_DAY(SYSDATE()) 
SELECT LAST_DAY(‘2015-02-02') 
SELECT LAST_DAY(‘2015-02-02 00:22:33')
Copy after login
-> 2016-01-31
-> 2015-02-28
-> 2015-02-28
Copy after login

The above is the detailed content of How to get the date of the last day of the month in MySQL. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template