Mysql last day of month

Mysql Last Day of Month is useful to provide you the last day of Month.

Mysql last day of month

Mysql last day of month

     

Mysql Last Day of Month is useful to provide you the last day of Month.

Understand with Example

The Tutorial illustrate an example from Mysql Last Day of Month. To understand the example we use (Last Day (now())) that returns you the last day of the current month as fieldname LastDayOfMonth. 

Query:-

mysql> SELECT DAY(LAST_DAY(now()))as LastDayOfMonth;

Output:-

+----------------+
| LastDayOfMonth |
+----------------+
|             31 |
+----------------+
1 row in set (0.00 sec)