IsComplexDate()
=)

THis one will check if the date is in the form "mm/dd/yy" or "dd/mm/yy" or
"dd/mmm/yyyy"
depending on what the user enters :)
IsMediumDate(#startdate#, "dd-mmm-yyyy")

This will be true if startdate = "02-Jan-2000"
etc. etc.
And we have to be able to use it in OnValidate routines for <CFINPUT> tags

It's really simple.
I'd be willing to Beta Test it too.

-Gel

----- Original Message -----
From: Michael Dinowitz <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 01, 2000 2:10 PM
Subject: Re: Functions in Cold Fusion


> OK, I need some community input here. For my article on custom functions,
> I've written one for IsEmail and IsPhone. Can people send me a few others
to
> 'add in'. I'd like the article to have a few pre-built functions that can
be
> used right off the bat. The only limits are that they must be built using
> functions in CF. No tags. For example, IsPhone uses this code:
> REFindNoCase('([0-9]{3}[-_. /]?)?[0-9]{3}[-_. /]?[0-9]{4}', number)
>
> ----- Original Message -----
> From: "Michael Dinowitz" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 01, 2000 12:42 PM
> Subject: Re: Functions in Cold Fusion
>
>
> > I'm currently writing an article for the next Fusion Authority (out in
the
> > next day) on how to write and use custom functions in CF. This is not
> using
> > modules or any CF tags but is actually using function calls. It's a bit
of
> a
> > hack and can look ugly in places, but it works. The result is that I can
> > have something like IsValidEmail(email) and it'll return a value that
says
> > yes or no.
> >
>
> --------------------------------------------------------------------------
> ----
> > Archives: http://www.mail-archive.com/[email protected]/
> > To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
> >
>
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to