How to change the date 2017-07-04 12:53:14 for Day / Month / Year with PHP

0

How to change the date 2017-07-04 12:53:14 to Day / Month / Year and continue normal time with PHP, so it is coming "2017-07-04 12:53:14" from the database. data

I want you to stay 04/07/2017 12:53:14

    
asked by anonymous 04.05.2018 / 15:12

1 answer

1

You can format this way

date_format(date_create("2017-07-04 12:53:14"), "d/m/Y H:i:s");
    
04.05.2018 / 15:18