At 02:16 PM 6/27/2002 -0400, you wrote: > > At 01:57 PM 6/27/2002 -0300, you wrote: > >>At 12:45 PM 6/27/02 -0400, Jeffry Houser wrote: > >> > I'm not sure what makes a variable "good" in this case, but if you > >> > offer more information, perhaps I can offer more information. > >> > >>I'm checking the value of a date to make sure it's legal. (I've had no > >>end of problems with the date parsing side of CFINPUT so I'm figured I'd > >>do it myself.) > > > 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. > >How would CreateODBCDate() know the difference between 02/05/2002 and >05/02/2002? ... both are valid dates and both could represent the same two >dates, dependant upon who's entering it and whether or not they're in the >US...
A) Wouldn't it be up the user entering the information to enter the proper date? How can you write a program to tell the difference between 02/05/2002 and 05/02/2002? B) How does the SetLocale function fit into all of this? Can't you use the LSIsDate function if you are expecting dates in a format other than mm/dd/yy? -- Jeffry Houser | mailto:[EMAIL PROTECTED] Need a Web Developer? Contact me! AIM: Reboog711 | Phone: 1-203-379-0773 -- My CFMX Book: <http://www.amazon.com/exec/obidos/ASIN/0072225564/instantcoldfu-20> My Books: http://www.instantcoldfusion.com My Band: http://www.farcryfly.com ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com 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

