WordPress.org

Ready to get started?Download WordPress

Forums

Month only showing first three letters (3 posts)

  1. Christopher Roberts
    Member
    Posted 3 years ago #

    I am a member of the admin team for a blog called Technology Bloggers.

    At the bottom of every page it has "© Technology Bloggers April 2011 to Jul 2011" the thing is I want it to say July not Jul.

    In June it said Jun and in May it said May, so I am not sure what the fault it :-/

    the code for it is

    <div id="site-info">&copy; Technology Bloggers April 2011 to <?php echo date("M"); ?> <?php echo date("Y"); ?></div>

    Any help as to how I can get it to show the full month name?

  2. keesiemeijer
    moderator
    Posted 3 years ago #

    http://codex.wordpress.org/Formatting_Date_and_Time

    use F

    <div id="site-info">&copy; Technology Bloggers April 2011 to <?php echo date("F"); ?> <?php echo date("Y"); ?></div>
  3. Christopher Roberts
    Member
    Posted 3 years ago #

    Brilliant, thanks :-)

Topic Closed

This topic has been closed to new replies.

About this Topic