![]() |
date format
while creating a data field in a table in mysql, I want to format the date like
dd/mm/yyyy . But I have to alter the table...Can anyone write the query here?? |
Huh? You're going to have to give us more information, your namesake is very fitting btw...
|
When you select the date from the table, use the DATE_FORMAT function:
:
SELECT DATE_FORMAT(my_date, '%d %m %Y') FROM my_table |
| All times are GMT -5. The time now is 5:08 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC