1 2 3 4 5
<?php $date = '2012-02-06 22:20:37'; $date = date('j M y', strtotime($date)); var_dump($date); ?>
1
string(8) "6 Feb 12"