0
How I can convert the date of 2019-02-22
for the Brazilian format 22/02/2019
?
$data_atual = date('d-m-Y H:i:s');
date_default_timezone_set('America/Sao_Paulo');
$data_ult_aces = $row_ult_aces['data_acesso'];
$ob_data_atual = new DateTime($data_atual);
$ob_data_ult_aces = new DateTime($data_ult_aces);
I also tried to use the date_format('d/m/y');
didn’t work.
You might help: https://answall.com/a/348155/99718 and https://answall.com/q/109985/99718 and https://answall.com/a/338494/99718 and https://answall.com/a/358583/99718
– Valdeir Psr
do not need to put the (Solved) in the title, just accept the answer that solved your problem and is all right
– Neuber Oliveira