Cargo de mi base de datos unos campos , con los que hago una tabla, y me da problemas de conversión de fecha, no se ninguna función que convierta un datetime a un string
aquí pongo el código:
Código PHP:
while($row=sqlsrv_fetch_array($res)) {?>
<tr>
<td><?php echo $row['Id_persona'];?></td>
<td><?php echo $row['Nombre_completo'];?></td>
<td><?php echo $row['Cargo'];?></td>
<?php
($row1=sqlsrv_fetch_array($res2))
?>
<td><?php echo $row1['Nombre'];?></td>
<?php
$row3="";
($row3=sqlsrv_fetch_array($res3))
?>
<td><?php echo $row3['Tipo'];?></td>
<td><?php echo $row3['Telefono'];?></td>
<td><?php echo $row3['Extension'];?></td>
<td><?php echo $row3 ['Fecha_mod'];?></td>
<?php
}
pero no logro ponerla en funcionamiento
Catchable fatal error: Object of class DateTime could not be converted to string in (mi ruta)