Forums

Date and Time Format Question... (5 posts)

  1. c0y0te
    Member
    Posted 3 years ago #

    I've searched the template tags/Codex and the forums but as yet not managed to come across an answer.

    Right now if I use the standard time/date formatting using the code below I get the output listed below.

    Code:
    <?php the_time('F jS'); ?>

    Output:
    August 22nd

    What I'm after however is the abbreviated form of the month (e.g. "Aug" instead of "August" and "Sep" instead of "September". Is this possible and if so, how do I go about achieving it? Thanks in advance.

    c0y0te

  2. whooami
    Member
    Posted 3 years ago #

    http://codex.wordpress.org/Formatting_Date_and_Time

    actually thats not really helpful, is it..but it links to this:

    http://us.php.net/date

    wordpress follows the same standard

  3. c0y0te
    Member
    Posted 3 years ago #

    Thank you. That did the trick.

    As a suggestion, perhaps the Codex could be updated to include that extra info?

    c0y0te

  4. whooami
    Member
    Posted 3 years ago #

    the codex links to the info, but you can always make an account and add to the page.

  5. Otto
    Tech Ninja
    Posted 3 years ago #

    The codex only links to that info because it might change in the future. Okay, not likely, but duplicating all of it is a bit pointless. ;)

Topic Closed

This topic has been closed to new replies.

About this Topic