Tuesday, August 14, 2012

Magento display date format

<?php
                            $strReviewDate = $_review->getCreatedAt();
                            $arrReviewDate = explode(' ',$strReviewDate);
                            $intReviewDate = strtotime($arrReviewDate[0]);
                            $dtReviewDate = date('d F, Y',$intReviewDate);
                            echo " - ".$dtReviewDate;
                            ?>

2 comments:

  1. Magento Development Is The Best Keyword To Increse Our Web Traffic.

    Magento Developer

    ReplyDelete
  2. Perfect Like I require..

    ReplyDelete

Please mention your comments.......