Home Sql Sqldate Mysql last day of month
Questions:Ask|Latest



Mysql last day of month
Posted on: January 20, 2009 By Deepak Kumar
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)

 

 


Recommend the tutorial

Ask Questions?    Discuss: Mysql last day of month   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments