php: $var1 that is Time: how to display 21-09-2010 instead of 2010-09-21 21:21:45?

Vergus Lee

New member
how to display 21-09-2010?
The database column Time of Timestamp type contains a cell "2010-09-21 12:34:56".


$row['Time'] displays "2010-09-21 12:34:56". How to display 21-09-2010 (only a date, date comes first).

Thank you.
 
Back
Top