Bob Yep its coming from a form and yep I think'll adopt for that approach. Only thing is the user is presented with a form with 10 date fields I wonder which method would be easiest to use from a Jakob Neilson point of view...
Kola -----Original Message----- From: Bob Pagett [mailto:[EMAIL PROTECTED]] Sent: 02 August 2002 14:56 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] LSisDate Function problem Kola - where's the date coming from? If it's from a form, then I only ever use drop-down select boxes. This removes all ambiguity. If it's coming from somewhere else and might be a US date it's problematical cos 02/03/2002 is a valid UK and US date. What is it your trying? Bob -----Original Message----- From: Kola Oyedeji [mailto:[EMAIL PROTECTED]] Sent: 02 August 2002 14:25 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] LSisDate Function problem Bob Thanks for clearing that up for me! Anyone have a UDF to check if A date is a valid European date? Kola -----Original Message----- From: Bob Pagett [mailto:[EMAIL PROTECTED]] Sent: 02 August 2002 13:11 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] LSisDate Function problem I can see why your puzzled. LSisdate just checks whether a given string CAN be converted to a local date. If you replace Yes "01-13-2002" is a valid UK date with #DateFormat(dt,"dd/mm/yyyy")# you'll see what I mean Bob -----Original Message----- From: Kola Oyedeji [mailto:[EMAIL PROTECTED]] Sent: 02 August 2002 11:25 To: [EMAIL PROTECTED] Subject: [ cf-dev ] LSisDate Function problem Hi Not sure if its me or this is wrong but isn't LSisDate supposed To determine if a date is valid for a specific locale? <cfoutput> original locale: #GetLocale( )#<br> <cfset temp = setLocale("English (UK)") > new locale:#GetLocale( )#<br> <cfset dt = "01-13-2002" > <cfif LSisDate(dt) > Yes "01-13-2002" is a valid UK date <cfelse> not a valid date </cfif> </cfoutput> On my machine the above date is deemed valid? Kola -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.380 / Virus Database: 213 - Release Date: 24/07/02 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.380 / Virus Database: 213 - Release Date: 24/07/02 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.380 / Virus Database: 213 - Release Date: 24/07/02 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.380 / Virus Database: 213 - Release Date: 24/07/02 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
