I am new in magento can you please suggest me
I want to display the order date and time in this format : 10:30pm 9th April
If you want without year like 12:00 AM 9th September
then
$date = Mage::getModel('core/date')->date('Y-m-d');
echo $time = date('h:i A', strtotime($date)) . ' ' . date("jS F, ", strtotime($date));
If you want with year like 12:00 AM 9th September, 2016
then
$date = Mage::getModel('core/date')->date('Y-m-d');
echo $time = date('h:i A', strtotime($date)) . ' ' . date("jS F, Y", strtotime($date));