WordPress.org

Ready to get started?Download WordPress

Forums

Show number the month, NOT name? (3 posts)

  1. Anna Johansson
    Member
    Posted 6 years ago #

    Is there a way to get comment_date to show the number of the month, rather than the name?

    <?php comment_date('j F, Y') ?> results in for example 19 June, 2007 and I'd like it to be 19/6, 2007.

    How to...?

  2. Jeremy Clark
    Moderator
    Posted 6 years ago #

    Try
    <?php comment_date('j/n, Y') ?>

    I'm not sure if the / will work in there or not.

  3. Anna Johansson
    Member
    Posted 6 years ago #

    Worked like a charmn, just trid that solution.
    =)

    Except for one thing, the slash sign (/). I don't know of any entitie for it either?

Topic Closed

This topic has been closed to new replies.

About this Topic