<cftry> <cfset yourDate = createDate(your dropdown values here, ie year month day)> <cfif isDate(yourDate)> yep <cfelse> nope </cfif> <cfcatch>nope</cfcatch> </cftry>
Taco Fleur 0421 851 786 Tell me and I will forget Show me and I will remember Teach me and I will learn > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Michael Kear > Sent: Friday, 5 December 2003 8:18 PM > To: CFAussie Mailing List > Subject: [cfaussie] Easy validation of dates? > > > I have a form where users enter dates by selecting from > drop-down menus for date, month and year.��Is there a simple > way to check they have entered a valid date rather than a > laborious checking for leap year, if the month is april and > date greater than 30 etc etc etc? > > I get errors if they choose 31 September or 30 February etc > as you'd expect but I'd rather handle the error gracefully > than just display a nasty database error. > > Cheers, > Michael Kear > Windsor, NSW, Australia > AFP Webworks. > > > > > --- > You are currently subscribed to cfaussie as: > [EMAIL PROTECTED] To unsubscribe send a blank email to > [EMAIL PROTECTED] > > MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004 --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
