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

Asked

Viewed 20 times

0

How to change the date 2017-07-04 12:53:14 to Day/Month/Year and continue the normal schedule with PHP, it’s coming like this "2017-07-04 12:53:14" from the database

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

1 answer

1


You can format like this

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.