WordPress.org

Ready to get started?Download WordPress

Forums

Date... FEB instead of FEBUARY (4 posts)

  1. krushinfo
    Member
    Posted 7 years ago #

    Hey

    I know how to output the date:

    <?php the_time('l, F jS, Y') ?>

    e.g. for the just the month I would use:

    <?php the_time('F') ?>

    But does anyone know how to shorten the months, as I dont have much room for it in full.

    e.g. December shortened to DEC

  2. Chris_K
    Member
    Posted 7 years ago #

    Here's a quick reference: http://us3.php.net/date

  3. moshu
    Member
    Posted 7 years ago #

    Did you see this (you could click for it from your admin panel) http://php.net/date

  4. krushinfo
    Member
    Posted 7 years ago #

    Cheers thats awesome.. it was M..

    If anyone knows how to make it all caps that would be nice but tbh im just glad ive got it down to 3 chars

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.