Either create a regex that checks what the user entered for correctness or,
instead of letting the user enter the mask free form, let them choose from a
predetermined number of masks via a SELECT list.

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 942-5378
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/


> -----Original Message-----
> From: Randell B Adkins [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2003 2:03 PM
> To: CF-Talk
> Subject: Time Format Question
>
>
> ok I have a field which allows a user to enter a
> time format MASK to be used when displaying
> time on a website.
>
> Example: user enters:  H:MM:SS TT
>
> This is a proepr formatting mask for TIMEFORMAT.
>
> However if a user enters: NOTIMEFORMAT or something
> stupid and off the wall, the timeformat function should
> blow up.
>
> I entered: MONKEY as a mask and the TIMEFORMAT
> function output:
> #TimeFormat(Now(),MONKEY)# = 2O'N'K'E'Y
>
>
> I also tried to use IsDate in conjunction with CREATEDATE
> so I could have a valid date but an invalid time and it
> returns as a true statement that it is a DATE.
>
> There is not IStime function.. anyone have an idea?
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to