I have created a registration system and data queries for the registry in which I work, however the dates are being displayed in the format a / m / d and I want to change to the national format, but I do not know how to do it. Can someone help me?
I have created a registration system and data queries for the registry in which I work, however the dates are being displayed in the format a / m / d and I want to change to the national format, but I do not know how to do it. Can someone help me?
With PHP
:
$sua_data_atual='2018-05-19';
echo date('d/m/Y' strtotime($sua_data_atual));
Retune 19/05/2018
.