Convert date format into echo of php [duplicate]

1

Good afternoon,

My database is saving dates in the following format "2017-04-19", I do not know if I can change the data already registered in it and the way the data will be saved, so I chose to treat the date in my php code , which I have not been successful, my echo today is as follows:

   echo '<td>' . $row['data_chamada'] . '</td>';

What would be the correct syntax for transforming the date format to the one used here in Brazil (DD / MM / YYYY)?

    
asked by anonymous 19.04.2017 / 21:28

1 answer

1

You can use

    date_format($row['data_chamada'],"d/m/Y");
    
19.04.2017 / 21:36