I get the data from database to html page as
<?php $subscriber = json_decode($this->subscriber); ?> I am displaying all the elements as
<?php echo $subscriber->date; ?> Where as now I want to display the date. When I directly display the date I am getting the format as 2014-07-15 17:02:50
But I want to display in the format 15-07-2014. What are the functions used and how the code should be written in php?