At 01:22 PM 6/27/02 -0400, Jeffry Houser wrote: > I do worry that you are re-inventing the wheel. Have you looked at the >IsDate or LSIsDate function? > I'm not sure if ColdFusion has a specific way to compare against a given >mask, though, but if your intent is to turn it into an ODBC date, the given >mask doesn't matter if you use the CreateODBCDate function.
I may well be reinventing the wheel. :) I do that all the time. But my problem is I get customers who want mm/dd/yyyy and others who want dd/mm/yyyy and the eurodate validation doesn't always work (the day and month get swapped.) So I wrote a basic CF program to handle this, but if I can do it as a UDF it would be much slicker (and give me some practice creating UDFs.) Perhaps it is impossible to break out of CFSCRIPT block. How many variables can I return with a CFSCRIPT block? T ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

