Helping ordinary people create extraordinary websites!

A Class for Validating and Formatting Dates

By Tony Marston
2005-04-16

A Class for Validating and Formatting Dates
Intended Audience This tutorial is intended for developers who want to take a user-supplied date and format it so that it can be added to the database, and then to take a date from the database and format for display to the user.

Prerequisites
It is assumed you have basic knowledge of PHP. This tutorial will cover some of the following areas in PHP:

• Class/Object functions.

• Simple Array functions.

• Simple regular expressions.

• Date functions (checkdate, GregoriantoJD, JDtoGregorian).

• String functions (strtolower, ucfirst, strlen, substr, list, split).



Tutorial pages:
 1 Votes

You might also want to check these out:


Leave a Comment on "A Class for Validating and Formatting Dates"
You must be logged in to post a comment.

Link to This Tutorial Page!


GET OUR NEWSLETTERS