-2
I’m pulling a value VARCHAR from the bank , I convert it to appear in DATA format , as long as the value is white in my bank, it pulls me a number "31/12/1969" . How can I fix this ?
How I’m turning that value :
*CONEXÃO COM O BANCO + SQL DO SELECT
<table>
<thead>
<tr>
<th>
<center><b>Data</b></center>
</th>
</thead>
<?php while ($row = sqlsrv_fetch_array($stmt, SQLSRV_FETCH_ASSOC)) { ?>
<tr>
<td> ?php echo date("d/m/Y",strtotime($row['DT_FATURAMENTO']??'')); ?>
</td>
<?php } ?>
</table>