Date format in mysql |
[eluser]shankar ganesh[/eluser]
Hi All. Please let me know how to format the date in mysql, the output should be like as below things, 2nd Jan, 2012 9th Nov, 2011 3rd Dec, 2011 23rd Jun 2011 20th Jul 2011 Thanks in advance.
[eluser]shankar ganesh[/eluser]
Hi Research, It should be done only in mysql query and not by PHP code.
[eluser]shankar ganesh[/eluser]
Hi All, I got the result by using the below thing, DATE_FORMAT(car.manuf_date,'%D %b, %Y') Thanks.
[eluser]vbsaltydog[/eluser]
What does this have to do with CodeIgniter? Please post these types of questions on the appropriate websites so we can help those with CI specific questions. http://forums.mysql.com/
[eluser]porquero[/eluser]
Here, full description how to use Mysql DATE_FORMAT: http://dev.mysql.com/doc/refman/5.5/en/d...ate-format DATE_FORMAT(date,format); Code: mysql> SELECT DATE_FORMAT('2009-10-04 22:23:00', '%W %M %Y');
[eluser]Bhashkar Yadav[/eluser]
i looked at few threads, people post without doing any effort. OR it may be they know all and posting thread just for fun. |
Welcome Guest, Not a member yet? Register Sign In |