The below code displays date in yyyy-mm-dd
<td>
<?php
echo($data['Date']);?></td>
<td>
I want it in mm-dd-yyyy
The below code displays date in yyyy-mm-dd
<td>
<?php
echo($data['Date']);?></td>
<td>
I want it in mm-dd-yyyy
$s_date = $_POST['your_date_field'] // your date variable in '2015-10-10 ' formate
echo date('m-d-Y',strtotime($s_date)) // return 10-10-2015
Try this
Use strtotime($data['Date'])
to convert string to date time
and the use date('m-d-Y',strtotime($data['Date']))
to format it to your requirement
<td>
<?php echo date('m-d-Y',strtotime($data['Date']));?>
</td>