Mysql date month name

Ads
 

Mysql date month name

The Tutorial elaborate an example from Date Month Name in Mysql.

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)

Ads

Ads