NamePros.Com (http://www.namepros.com/)
-   Webmaster Tutorials (http://www.namepros.com/webmaster-tutorials/)
-   -   date() (http://www.namepros.com/webmaster-tutorials/173487-date.html)

asgsoft 03-04-2006 01:30 PM

date()
 
This is a very good function thta can be used to date anything from last login to date adding a specific post. It is used in PHP 4 and 5. It is a reletavly easy fuction to use becuase it goes like this:
PHP Code:
date("parameters");

but its no use like this so we make it part of a variable
PHP Code:
$date = date("parameters")

the parameters you put inside are specific and are in the table below. i got this table from the PHP official site: http://uk.php.net/date


you can also easily format time so this:
PHP Code:
date('l dS \of F Y h:i:s A');
will give Monday 12th of November 2005 1:04:46 PM

I hope you find this helpful


All times are GMT -7. The time now is 10:43 PM.
Site Sponsors
Advertise your business at NamePros

Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0