WordPress: Today’s date on your blog

Today’s date on your WordPress blog

Have you ever wanted to display today’s date on your blog? Of course that yes, because it looks profesional, useful and informative. Here is a very easy way to add today’s date on your WordPress blog. This is very simple php code for showing date.

todays-date-on-wordpress-blog

Here is code:

 <?php echo date('l jS F Y'); ?>

The date format can be easily formatted. You can get more info on the date() php function here. Thanks for this WordPress recipe for Wprecipes.com.

6 thoughts on “WordPress: Today’s date on your blog

  • June 13, 2009 at 9:00 pm
    Permalink

    Nice and useful piece of php coding.

    It’s the sort of small snippet that people use and then start looking more at php and eventually end up as a complete nerd.

    Thanks for providing the first spark…

    Reply
  • August 16, 2009 at 3:02 am
    Permalink

    Small but well formed piece of code.

    I think that seeing the date gives a sense of the site being “up to date”… even though the effect is achieved with a piece of code.

    Of course you can put the code on any web page, which is a php page, providing your host runs php.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *