I'm sure someone else has dealt with this problem, but I can't seem to find the answers I need by searching for it.

I use the standard date() on my site a few times to pull out basic info - including name of the months (January, February, March, ...) and days of the week (Monday, Tuesday, ...). Now that I'm involved in different languages, I want to make sure that the text is also in stated language. German example: (Januar, Februar, März, ...)

Is there any quick way to modify the output of date()? Or am I going to have to create a nasty switch statement?

Thanks for all those who help 😃

    Take a look at [man]strftime()[/man] and [man]setlocale()[/man] for locale based time formatting.

      Perfect, that will work beautifully.

      I have to say though, it is sure annoying that there is a difference between Linux and Windows with setlocale(). Oh well!

        Write a Reply...