Home ›
Displaying the current date
Posted on November 3, 2010
In order to have a line that displays the current date on the site:

the following code can be added:
<?php print format_date(time(), 'custom', 'M. j, Y'); ?>
In my case, I added this code to a custom template for the user log-in information that displays at the top of the page. That file is called 'user-login-block.tpl.php'.

Comments
Post new comment