SigSource - Your ultimate design source

PHP (Date & Time)

Writing the date and time on a page is very simple. Here's an example:

<?php

echo date("d m Y");

?>

This would display:
17 01 2006

You can easily edit it to display how you want:

<?php 

echo date("h:i:s A");

?>

Displayed as:
14:36:23 PM


You can slot this code in anywhere on your webpage and it will display.