echo date('M j Y g:i A', strtotime('2010-05-29 01:17:35')); http://php.net/manual/en/function.date.php ए>