hi I want to show the date in this format in a query "d-m-Y" because when the storage in the bd is stored in this way "Y-m-d" type date append a piece of my query, thanks in advance
'while ($linea = $consulta->fetch(PDO::FETCH_ASSOC)) {
echo "<tr>
<td align=center>$i</td>
<td align=center>{$linea['nombres']}\n{$linea['apellidos']}</td>
<td align=center>{$linea['email']}</td>
<td align=center>{$linea['mensaje']}</td>
<td align=center>{$linea['fecha']}</td>'