|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
how to format and display only the date from timestamp ?
currently it shows :- Date : 19990827110223 i want it to show :- 27 / 08 / 1999 Thanks cause i appreciate your help. |
|
#2
|
|||
|
|||
|
Try this query:
SELECT DATE_FORMAT(columnName,'%d/%m/%Y') FROM tableName; For othere date/time related functions take a look at the docs: http://www.devshed.com/Server_Side/MySQL/Manual/manfiles/manual_Reference.html#Date_and_time_functions |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > how to format and display only the date from timestamp ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|