Advertising PICS Tools // The best online resource for Webmasters!

Your Ad Here

 

PHP Tutorials > Date & Time

PHP's date and time functions are a great way to show your visitors when your website was last updated. Many also use it for the purpose of showing the date and time. Here on the PICS Tools website, we use it to log our registration process in the MySQL database.

Open up your document and place the code below into where you wish:


<?php
echo date('m.d.y');
?>
 
 

This will output something like: 09.04.10

If you would like to display the current time you would enter the following:


<?php
echo date('h:i:s A');
?>
 
 

This will output something like: 09:31:15 PM

Now just re-upload your page with the .php extension and see what you have done!

Go Back To PHP Tutorials

 

 

 

Easy CGI Web Hosting - $7.96/month

Advertising | Services | Support
Copyright © 2007 All Rights Reserved.

Welcome
Username:
Password:

Register | Forgot Password
Spankin New
Blog
11.04.07 Are You Ready -- Affiliate Programs and Mobile PT?
09.27.07 One of the Biggest Scams Ever, Watch Out
09.26.07 Johnny Appleseed Day -- Delicious Day
09.25.07 What Do Wendie Ann Schweikert, Allena Ward, Nan Goldin, and Halo 3 Have In Common? Google.
09.21.07 Dover, De - Small Town, Big Crime
More...

Server Status

Check to see if your website's server is running the way you want it
Short Url
Have a lengthy web address? With our new program you can shorten it!


Services
Tutorials
Have a problem? We can help, Check out our tutorials and support forums!