I have a column named date_posted in MySQL database in the form of 2014-11-22 12:45:34 . I need to get only the date, month and year. So, I do
SELECT DATE(date_posted) as date_p FROM tablename
So, I get a format as 2014-11-22. How can I get it in the form 22 Nov, 2014.
And can it still be used for sorting the results.
Thank you :D !