How to display date time in real time
Published on 10/8/2007 by Site Editor|
Vote this tutorial:
|
More articles in PHP
In this code sample we will take a look at how to display date or time in our HTML pages. In PHP date() function can be used for to display in different ways. Lat's see our sample.
PHP Code on our pages :
("F j, Y, g:i a"); ?>
Output
2006-08-28
Wed Aug 28 10:57:47 CDT 2006
10:57:47
August 30, 2006, 10:57 pm
Happy Coding Comments:
no comments submitted
Latest Posts
- Database driven web counter with PHP/mySQL
- PHP mail() function
- Workingwith Arrays in PHP
- Check if the domain name exists
- Generating random strings within PHP
- Encode/Decode an ISO-8859-1 string to UTF-8
- Creating error pages using .htaccess
- PHP Security
- Displaying mySQL table structures in PHP
- Capitilize strings in PHP
- Counting records in PHP mySQL
- Parsing XML/RSS feeds easily with SimpleXML
- Sending queries to mySQL
- Session in PHP
- MD5 Encryption in PHP
- PHP Functions array fill
- How to display date time in real time
- PHP Functions urlencode
- In Case You Missed ItThe Week of January 23 2006
- In Case You Missed ItThe Week of January 16 2006


