I have the variable below and I want to format it to the Brazilian standard (01/20/2015) using PHP.
$data = Sun Jan 10 00:00:00 CST 2016
I have the variable below and I want to format it to the Brazilian standard (01/20/2015) using PHP.
$data = Sun Jan 10 00:00:00 CST 2016
Convert this date to for timestamp with strtotime()
and then take the desired format with date()
echo date('d/m/Y', strtotime('Sun Jan 10 00:00:00 CST 2016'));