I have a field in the table that is set to dtConcat2
timestamp
CURRENT_TIMESTAMP
and in insert it takes the date of the server and writes in that field, the problem when I print the invoice the date field goes like this: Order Date: 03 10:32:49/12/2017
My code looks like this:
<strong>Data do Pedido:</strong>
<?php
echo implode('/',array_reverse(explode('-',$detalhe['dtConcat2'])));
?>
The time is between the day and the month, how do I correct this to print the date correctly?