2
People Today I use a very simple way to convert dates from BD (American standard) to PT-BR.
The way I use it is like this:
$data_BD = "2016-07-27";
// Cria nome das variaveis
$ano = substr($data_BD,0,-6);
$mes = substr($data_BD,5,-3);
$dia = substr($data_BD,8);
$data = "$dia/$mes/$ano";
Well my question is, does PHP have any native function to perform this formatting? Because I have to convert both the dates of the BD to the user and the ones that the user informs on input
to save in the comic.
I think that answers: http://answall.com/q/21774/91
– rray