In my table currently shows 2019-01-21
this format and i want to show 21-01-2019
like this
I am trying like this
<table>
<tr>
<th>DOB</th>
</tr>
<?php foreach($employees as $post){?>
<tr>
<td><?php echo $post->user_date_of_birth;?></td>
</tr>
<?php }?>
</table>