WordPress.org

Forums

german weekday (4 posts)

  1. prefix
    Member
    Posted 11 years ago #

    morning :)
    by executing the function <?php the_date('d.m.Y','<h2>','</h2>'); ?> I'm not able to show also the weekday. I searched for the php-tag, but did not find it anyway, so that it would be ok :(
    I don't wont to usw <?php the_weekday(); ?>, because this would destroy my layout (and I wonna have the output of weekday and date in one string).
    thanks for your help

  2. drdave
    Member
    Posted 11 years ago #

    According to the doc:
    http://www.php.net/date
    "D" (mind the cap) will display the day of the week in your local setting (German, provided your host is set up for German localization, otherwise, that can be set locally).
    HtH

  3. prefix
    Member
    Posted 11 years ago #

    thx, in my way it was the small "l" (el) - found it exactly now on http://www.phpcenter.de/de-html-manual/function.date.html
    the "D" is the short display - thank you

  4. Root
    Member
    Posted 11 years ago #

    Just beside the date setting widget in WP admin there is a link to a full list of date styling variables.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.