Big Data and Hadoop Training @$80 or Rs. 6,000 only - valid till Oct 17th Apply Now!

Mysql last day of month

Ads
 

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 is useful to provide you the 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)

 

 

Ads

Ads