I have a field with timestamp datetime
in my bank and I need to convert timestamp
to this example format:
WEDNESDAY, DECEMBER 31, 1969 posted at 15:30
I searched here and found a code, but I can not make it work, it returns an error:
setlocale(LC_ALL, 'pt_BR', 'pt_BR.utf-8', 'pt_BR.utf-8', 'portuguese');
date_default_timezone_set('America/Sao_Paulo');
$var_DateTime = $dd;
return utf8_encode(ucwords(strftime('%A', $var_DateTime->sec)).', '
.strftime('%d', $var_DateTime->sec).
' de '.ucwords(strftime('%B', $var_DateTime->sec))
.' de '.strftime('%Y', $var_DateTime->sec));
How to format this date?