Javatpoint Logo
Javatpoint Logo

MySQL Date/Time last_day() Function

The last_day() is a MySQL date/time function. It is used to get the last date of the given month in the date.

Syntax

Parameter:

Date : date for getting last day date.

Returns:

This function returns the last day of the month for a given date.

Example 1

Output:


MySQL Datetime last_day() Function

Example 2

Output:


MySQL Datetime last_day() Function
Next TopicMySQL datetime




Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA