Checking Date Validity

Passing invalid dates to any CFML date functions will throw an error. If you ever accept dates from users (or any other sources) you must verify that the specified dates are valid before you use them. The simplest way to do this is to use the IsDate() function. But, this function only supports US format dates. (Applies to: ColdFusion 4 or later)

Leave a Reply