Post Pic

WordPress: Today’s date on your 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.

Advertisment

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 Responses

05.15.09

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…

05.15.09

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.

Nice content indeed! i will visit as often as i can.

cheers

05.15.09

It looks like you are a true pro. Did ya study about the theme? hrhr

05.15.09

Which Word Press template do you use?

05.15.09

Convergence.


Leave Your Response

* Name, Email, Comment are Required

Archives