Mysql last day of month

Mysql Last Day of Month is useful to provide you the 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.

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)

 

 

Advertisements

Share on Google+Share on Google+

Mysql last day of month

Posted on: January 20, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisements

 

Discuss: Mysql last day of month   View All Comments

Post your Comment


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

Ads

 

Ads