bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL LAST_DAY() Function

Example

SELECT LAST_DAY("2017-06-20");

Definition and Usage

The LAST_DAY() function extracts the last day of the month for a given date.

Syntax

LAST_DAY(
date
)

Parameter Values

ParameterDescription
dateRequired. The date to extract the last day of the month from

Technical Details

Works in:From MySQL 4.0

Previous

MySQL HOUR() Function

Next

MySQL LOCALTIME() Function