What are the date format and country settings for PHP? (locale)

You can select the country-specific formatting of the date and other items.

The PHP function for german is:

setlocale(LC_TIME, "de_DE.ISO8859-1");

or, for example:

setlocale(LC_TIME, "de_DE.UTF-8");

The list of available locales as well as the PHP documentation for the "setlocale()" function provides more information on this topic.


Unable to find what you were looking for?

Our support experts are happy to assist you personally!


© 2001 - Hostpoint AG