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