![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Feb 2006
Posts: 40
Rep Power: 0
![]() |
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?? |
|
|
|
|
|
#2 |
|
Programming Guru
![]() |
Huh? You're going to have to give us more information, your namesake is very fitting btw...
__________________
|
|
|
|
|
|
#3 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
When you select the date from the table, use the DATE_FORMAT function:
SELECT DATE_FORMAT(my_date, '%d %m %Y') FROM my_table |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|