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.
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).
This is a short tutorial on the date function in PHP. Its aimed at newcomers to the PHP language and shows some simple yet effective ways of displaying the date in your PHP pages. The tutorial also gives examples of arguments given to the date function.
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.