Helping ordinary people create extraordinary websites!
HOME TUTORIALS SCRIPTS WEB HOSTING BLOG FORUM
Get Our Newsletter
Email:

A Class for Validating and Formatting Dates

By Tony Marston
2005-04-16


Summary

It is always useful to have a standard way of validating and formatting dates. Hopefully this tutorial has demonstrated how easily this can be done by using functions defined within a date class. It should now be a straightforward process for you to take this source code and customise it for your own purposes.

The full source code for this class can be viewed here.

Tutorial Pages:
» A Class for Validating and Formatting Dates
» Defining the Class to Handle Dates
» Display date to the User
» Incrementing or Decrementing a Date
» Using this Class in Your Code
» Summary


 | Bookmark
Related Tutorials:
» Zend Framework Tutorial
» Port Scanning and Service Status Checking in PHP
» Web Database Access from Desktop Applications
» CubeCart 3.0 Installation and Configuration
» PHP Site Search Made Easy
» Installing and Configuring Drupal 6.1