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