Home Sql Sqldate Mysql date month name
Questions:Ask|Latest



Mysql date month name
Posted on: January 20, 2009 By Deepak Kumar
The Tutorial elaborate an example from Date Month Name in Mysql.

Mysql date month name

     

The Tutorial elaborate an example from Date Month Name in Mysql. To get the current value for the month of the year ,we use the following Query:

 date_format(now ( ),%M') return you the current month of the year. 

Query for selecting current month name:-

mysql> select date_format(now(),'%M')as Monthname;

Output:-

+-----------+
| Monthname |
+-----------+
| December  |
+-----------+
1 row in set (0.00 sec)

Recommend the tutorial

Ask Questions?    Discuss: Mysql date month name  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
biman
April 18, 2011
appreciation

THANKS A LOT... I can't imagine how I would have managed so many projects without roseindia