Publish the date automatically w/ PHP by eckert


Want to have the current date on your site?
Insert the following lines of code into your site:

<?php $my_t=getdate(date("U")); print("$my_t[weekday], $my_t[month] $my_t[mday], $my_t[year]"); ?>

The variables being used are weekday, month, numeric date and year. You can remove any of these depending on what you want the output to be.

Tags: , ,

Leave a Reply


It’s Called Web Design is proudly powered by WordPress
Entries (RSS) and Comments (RSS). Valid XHTML