NEW LISTINGS  HOT LISTINGS  TOP RATED  EDITOR PICK  ADD A LISTING  UPDATE A LISTING  GET RATED  UPGRADE A LISTING
  HOME     MY ACCOUNT     POWER SEARCH     REGISTER     MEMBER LIST     SUGGEST CATEGORY  

Average Visitor Rating: 0.00 (out of 5)
Number of ratings: 0 Votes

Visitor Rating

Working with dates and times in PHP
25998 Working with dates and times in PHP http://codewalkers.com/tutorials.php?show=29 Let?s discuss dates and times and how we use them in PHP projects. The date and time functions allow you to use the time of the server that PHP is running on so keep in mind that this function will depend on the local setting of your server. PHP > Tips and Tutorials > Date and Time Oct 15, 2006

Write a Review   Add to My Favorite   Refer it to Friend   Report Broken Link  



Other links at PHP > Tips and Tutorials > Date and Time
First of all try to collect the necessary information which are important to display the actual month and highlight the actual day. Besides this we want to display the actual month and year informations as well. To do this we need 3 special days informations:
The actual day
The first day of the actual month
The last day of the actual month
Category:

The epoche value that can be determined by time() and other PHP functions can be used to easily calculate the difference between two dates. The trick is to convert the dates into time stamps (if not already available in this format).
Category:

This code is for when you have a list of events you would like to put on a Web page but don't want to have to keep track of which events have expired and manually delete them. The code will check the date of each event and only display the events that are of the current day or forward. Even if you don't have use for this particular script, you will see how you can use the date format to compare today's date to other dates.
Category:

Creating a PHP Script to measure PHP execution time
Category:

Recently a client of mine asked that a hyperlinked advertisement be displayed on a sidebar in her website until a specific date and time.
Category:




Main Category
178
2033
792
284
174
1802
1113
905
1157
7350
70
898
59
2185
172

Join Mailing List
Joining mailing list will entitle you to receive occasional emails informing you of news and updates to the site and any special offers that may be of interest to you.



Top 10
Directory Statistics

Links: 19151
Categories: 1275
Registered Users: 689
Mailing List Subscribers: 2041
Unique Outgoing Hits: 219694

Pagerank Statistics
PR 10
2 site(s)
PR 9
9 site(s)
PR 8
36 site(s)
PR 7
289 site(s)
PR 6
828 site(s)
PR 5
2006 site(s)

PHP News