I use a plugin that shows me list of posts and I want to change format of date. This is show me date like this:
24 january 2015 12:20:11 and this is the code of above output:
<?php echo $post->getCreatedTime(); ?>
But I want to show date like this:
24 january 2015
I use this code but this is show time in wrong month and date, for example instead of 24 january 2015 it shows me: Oct 12, 2015 !!!
<?php $_ct= new Zend_Date($post->getCreatedTime()); echo $_ct->toString('MMM dd, yyyy'); ?>
I don't have any idea why this is happen!!!
How can I fix it?