output a date in other language than English
Posted: Tue Jul 05, 2005 9:23 am
hello!
I need to uotput a date field from my database (aaaa/mm/dd) in Portuguese on the following manner: Month Year.
already can output that in Inglish, for instance May 2005 with date_format in the sql query.
now, how can I output it in Portuguese?
I tried setlocale and strtime but isn't working
and
what i'm I doing wrong?
thx in advance!
I need to uotput a date field from my database (aaaa/mm/dd) in Portuguese on the following manner: Month Year.
already can output that in Inglish, for instance May 2005 with date_format in the sql query.
now, how can I output it in Portuguese?
I tried setlocale and strtime but isn't working
Code: Select all
<?php setlocale(LC_ALL, 'pt_PT.ISO8859-1', 'pt_PT.utf-8', 'portuguese', 'pt_PT');and
Code: Select all
<? echo strftime($row_rsListaProvas['date_m']); ?><?php echo strftime($row_rsListaProvas['date_y']);thx in advance!