|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
In MySQL database, a date field stores dates in YYYY-MM-DD format.
When I do a select * for displaying in a table, I want to display the date in DD-MM-YYYY format... How? Can anybody tell how to convert? |
|
#2
|
|||
|
|||
|
select date_format(date_field, '%Y-%m-%d') as FORMATTED from table_name
|
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > format date |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|