Here's my date format using to insert into database and in front end also displaying same. But I want to change in front end like d M yy format.
$postedon = date('Y-m-d',strtotime($this->input->post('postedon')));
output is Posted on : 2014-06-01
Here date is inserting and displaying like 2014-06-01.... but, if I change date format like this
$postedon = date('d M yy',strtotime($this->input->post('postedon')));
it is inserting as 0000-00-00.
So please guide me how to change format of date.