I get the date in the variable date
as
$date = "<?php echo $projects->dob;?>" ; //where let dob=2013-01-12
I want to convert this into Jan 2013
format. How to convert in php?
I get the date in the variable date
as
$date = "<?php echo $projects->dob;?>" ; //where let dob=2013-01-12
I want to convert this into Jan 2013
format. How to convert in php?
$dob = '2013-01-12';
echo date('M Y', strtotime($dob));
$date = date('M Y', strtotime($projects->dob));
Example: