If you also want to validate the date (no Jun 31, for instance), it's
going to be tough or impossible to do in a regex.  You can use one or
more regexes plus some code to parse and check the date, however.  Do
you want to do this in CF, or in JavaScript on the client side?  In CF,
can't you just use isDate()?

Jim


-----Original Message-----
From: Ken Beard <[EMAIL PROTECTED]>
To: CF-Talk <[EMAIL PROTECTED]>
Date: Wednesday, May 30, 2001 6:43 PM
Subject: isDate() regular expression


>I'm trying to make javascript functions that check the format of a
string
>that represents a date and time (seperate functions for date & time).
I
>want it to only accept formats that the isDate() coldfusion function
would
>accept.  My question is, does anyone know the regular expression that
the
>cf function isDate() uses?  If i had that i could just convert it to a
>posix regex and be perfect instead of guessing about/testing exactly
what
>isDate() will and won't accept.
>
>thanks in advance,
>
>Ken
>
>-----------------------------------------------------
>Ken Beard
>Manager, Application Development
>Stone Ground Solutions
>5100 West Kennedy Blvd, Suite 430
>Tampa FL  33602
>813.387.1235 voice
>866.767.4051 toll free
>813.387.1237 fax
>www.stoneground.com


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to