[resolved] How to rename weekdays and months in date? (3 posts)

  1. ile
    Posted 7 years ago #

    By default, php date() function return weekdays and months in English (days: Monday, Tuesday... months: January, February...). I wonder how to rename these values because my site is going to be in Croatian and i want Croatian date format.
    If anyone remembers, in cafelog b2 (old blog script) it was resolved in config.php file. Weekdays were presented as list variable:

    $weekday[0] = "Monday";
    $weekday[1] = "Tuesday";
    $month[0] = "January";
    $month[1] = "Februry";

    I need something like this:

    $weekday[0] = "Ponedjeljak";
    $weekday[1] = "Utorak";
    $month[0] = "Sijecanj";
    $month[1] = "Veljaca";

    Also, i will use it later in calendar, so i will need only first letter or first 3 letters of these variables.
    Thanks in forward!

  2. MichaelH
    Posted 7 years ago #

  3. ile
    Posted 7 years ago #

    Your link is broken but it helped me to find the right one
    It works perfect now. Thanks!

    Here is the link if someone has the same problem and link for translated languages

Topic Closed

This topic has been closed to new replies.

About this Topic