Feb 04, 2022
I am going to explain you example of MySQL get month short name from date example. You will learn How to get the short month name from a date in MySQL?. DATE_FORMAT '%b' for short month name in SQL query.
In MySQL, you can use the DATE_FORMAT() function with the %b format specifier to return the short month name. For example, you can return Jan or Feb instead of January or February.
You can use from MySQL to display Month short name from date. I will give you simple query to getting data get the short month name from table.
Let's see example here:
Table : users
Solution SQL Query:
DATE_FORMAT(created_at, '%b') as month_name
I hope it will help you...