How to format date and time from Mysql to the Brazilian format in PHP? [duplicate]

0

My two doubts are as follows:

1) When I retrieve the date and time ( datetime ) from the database comes in this format (example):

  

2016-11-12 11:19:34

But I want to show it as follows:

  

11:19:34 12/11/2016

How to do this?

2) How do I get the date and time in PHP to insert into the database in this format:

  

2016-11-12 11:19:34

    
asked by anonymous 18.10.2017 / 14:36

0 answers