i fetched from created field date and time like this format 2011-3-10 17:26:50 and i want to convert to this format March 13, 2010 how can i do this with php or cakephp 1.3
<?php
$i = 0;
foreach($articles as $$article ):
?>
<tr>
<td><?php echo $article['Article']['title']; ?></td>
<td><?php echo $article['Article']['created'];;?></td>
</tr>
<?php endforeach; ?>
I presume you mean “fetched” as in retrieving from MySQL. The simplest/quickest (but also the most like to blow up and kick your dog) is to simply do