Home Sql Sql-functions Mysql last day of month



Mysql last day of month
Posted on: January 16, 2009 at 12:00 AM
The Tutorial illustrate an example from 'Mysql Last Day of Month'. To understand and grasp the example we run LAST_DAY(now( )) that return the last day of the month.

Mysql last day of month

     

The Tutorial illustrate an example from 'Mysql Last Day of Month'. To  understand and grasp the example we run LAST_DAY(now( )) that return the last day of the month.

LAST_DAY(now( )) : The Query return the last day of the current month a s fieldname Last Day of Month.

 

 

 

 

Query:

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

Output:-

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

 

 

Related Tags for Mysql last day of month:
sqlmysqlasptutorialreturnriaexampletoexamrunasteilmonthlastfromnoasstamnttrratedaytorxaxampsurnspatrasmyhallmplandstrtutorssrithsthatgrasppleplndonomo


More Tutorials from this section

Ask Questions?    Discuss: Mysql last day of month  

Post your Comment


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

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.