Date Localization

You can localize the date and time within PHP by following these steps:

1. Verify that the correct locales are installed on the server.

> locale -a
aa_DJ
aa_DJ.iso88591
aa_DJ.utf8
aa_ER
aa_ER@saaho
aa_ER.utf8
aa_ER.utf8@saaho
aa_ET
...

2. Set the locale within PHP.

setlocale(LC_TIME, 'fr_FR');

3. Call strftime() to output the localized date.

echo strftime('%e %B %Y');