• Hi

    Im a complete newbie to the whole php world. Ive been trying to learn this morning. But what im trying to achieve is more than i can create at this time. And the deadline is closing in hard.

    What is need is a php code that calls out the current date + time. This is what i got so far.

    <?php echo date(‘F d, Y G:i:s’) ?>

    This does some of the trick, however, i need the text in swedish. Ive been reading about set locale, but i cant get my head around it.

    So basicly i want a code that calls out the following.

    Weekday, day month, year, HH:MM:SS
    ex Tuesday, 8th april, 2014. 11:03:25

    In swedish.

    I would be super appriciative if someone could help me with this.

    Regards
    Michael

Viewing 1 replies (of 1 total)
  • Thread Starter Swinnnk

    (@swinnnk)

    Ok, so i actually managed to get it working the way i want it to. If someone is interested.
    im using

    <?php
    setlocale(LC_TIME, “sv_SE”);
    echo strftime(“%A %d %B %Y , vecka %V”);
    ?>

    Wich reports back tisdag 08 april 2014 , vecka 15

Viewing 1 replies (of 1 total)

The topic ‘php echo date’ is closed to new replies.