I am unable to assign only date to a php variable from datetime field of a MySQL table. I am using PHP 4, I know how to do it in PHP 5.
datetime
Can
If you just want to display the date portion, you could use the DateTime class:
echo DateTime::createFromFormat("Y-m-d H:i:s", "2012-12-24 12:13:14")->format("d/m/Y"); // 24/12/2012
//Edited for double echo typo.