<?php $stringdate = "8/29/2011 1:00 PM"; $timestemp = strtotime($stringdate); $date = date('Y-m-d', $timestemp); $time = date('H:i:s',$timestemp); echo $date; echo $time;
You have javascript disabled. You will not be able to edit any code.