Share on Google+Share on Google+

Mysql last day of month

Advertisement
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)

 

 

Advertisements

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

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Discuss: Mysql last day of month   View All Comments

Post your Comment


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