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]
